mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-15 14:56:41 +00:00
bug 4816: move permission CAN_IMPORT_MASTERDATA to SERVER_ACTIONS
This commit is contained in:
1 parent
01f8d1ccf4
commit
f27abc43c4
3 files changed
+5
-9
No files matched your search
+1
-6
@@ -137,11 +137,6 @@ public class SecuredDomainType extends HasPermissionsImpl {
|
||||
/**
|
||||
* type-relative identifier is the device configuration name
|
||||
*/
|
||||
public static final HasPermissions RACE_MANAGER_APP_DEVICE_CONFIGURATION = new SecuredDomainType("RACE_MANAGER_APP_DEVICE_CONFIGURATION", IdentifierStrategy.TO_SPECIFY);
|
||||
public static final HasPermissions RACE_MANAGER_APP_DEVICE_CONFIGURATION = new SecuredDomainType("RACE_MANAGER_APP_DEVICE_CONFIGURATION", IdentifierStrategy.NAMED);
|
||||
|
||||
/**
|
||||
* Create required to do MasterDataImport, type-relative identifier is the servername
|
||||
*/
|
||||
public static final HasPermissions CAN_IMPORT_MASTERDATA = new SecuredDomainType(
|
||||
"CAN_REPLAY_DURING_LIVE_RACES", IdentifierStrategy.TO_SPECIFY);
|
||||
}
|
||||
+2
-2
@@ -5458,8 +5458,8 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet implements S
|
||||
final boolean compress, final boolean exportWind, final boolean exportDeviceConfigurations,
|
||||
String targetServerUsername, String targetServerPassword) {
|
||||
// FIXME should the targetserver also check this?
|
||||
SecurityUtils.getSubject().isPermitted(SecuredDomainType.CAN_IMPORT_MASTERDATA
|
||||
.getStringPermissionForObjects(DefaultActions.CREATE, ServerInfo.getName()));
|
||||
SecurityUtils.getSubject().isPermitted(SecuredSecurityTypes.SERVER
|
||||
.getStringPermissionForObjects(ServerActions.CAN_IMPORT_MASTERDATA, ServerInfo.getName()));
|
||||
|
||||
String token = getTokenForServer(urlAsString, targetServerUsername, targetServerPassword);
|
||||
|
||||
|
||||
+2
-1
@@ -54,7 +54,8 @@ public class SecuredSecurityTypes extends HasPermissionsImpl {
|
||||
CONFIGURE_LOCAL_SERVER,
|
||||
CONFIGURE_REMOTE_INSTANCES,
|
||||
IMPORT_MASTER_DATA,
|
||||
CREATE_OBJECT
|
||||
CREATE_OBJECT,
|
||||
CAN_IMPORT_MASTERDATA
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user