mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-07 19:42:17 +00:00
fixed i8n syntax err + MANAGE_LOCK Enum assignment
This commit is contained in:
1 parent
271e36671b
commit
29e0384fb6
7 files changed
+9
-10
No files matched your search
+1
-1
@@ -136,7 +136,7 @@ public interface HasPermissions extends Named {
|
||||
*
|
||||
*/
|
||||
public enum DefaultActions implements Action {
|
||||
CREATE, READ, UPDATE, DELETE, CHANGE_OWNERSHIP, CHANGE_ACL, MANAGE_LOCK;
|
||||
CREATE, READ, UPDATE, DELETE, CHANGE_OWNERSHIP, CHANGE_ACL;
|
||||
|
||||
public static final Action[] MUTATION_ACTIONS = new Action[] { CREATE, UPDATE, DELETE, CHANGE_OWNERSHIP,
|
||||
CHANGE_ACL };
|
||||
|
||||
+2
-2
@@ -41,14 +41,14 @@ public class SecuredSecurityTypes extends HasPermissionsImpl {
|
||||
|
||||
public static enum UserActions implements Action {
|
||||
/** Update a user's password without knowing the old password. */
|
||||
FORCE_OVERWRITE_PASSWORD, ADD_SUBSCRIPTION, BE_PREMIUM
|
||||
FORCE_OVERWRITE_PASSWORD, ADD_SUBSCRIPTION, BE_PREMIUM, MANAGE_LOCK
|
||||
};
|
||||
/**
|
||||
* type-relative identifier is the {@link User#getName() username}.
|
||||
*/
|
||||
public static final HasPermissions USER = new SecuredSecurityTypes("USER", DefaultActions
|
||||
.plus(UserActions.FORCE_OVERWRITE_PASSWORD, PublicReadableActions.READ_PUBLIC,
|
||||
UserActions.ADD_SUBSCRIPTION, UserActions.BE_PREMIUM));
|
||||
UserActions.ADD_SUBSCRIPTION, UserActions.BE_PREMIUM, UserActions.MANAGE_LOCK));
|
||||
|
||||
/**
|
||||
* type-relative identifier is the {@link RoleDefinition#getId() role ID's} string representation
|
||||
|
||||
Reference in new issue
Block a user