fixed i8n syntax err + MANAGE_LOCK Enum assignment

This commit is contained in:
Sohaib Baig committed 2025-08-11 13:09:34 +02:00
1 parent 271e36671b
commit 29e0384fb6
7 files changed
+9 -10

No files matched your search

@@ -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 };
@@ -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