fix(auth): use bare role names in annotations
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -9,6 +9,6 @@ import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@PreAuthorize("isAuthenticated() && hasAnyRole('ROLE_ADMIN', 'ROLE_SUPER_USER')")
|
||||
@PreAuthorize("isAuthenticated() && hasAnyRole('ADMIN', 'SUPER_USER')")
|
||||
public @interface RequiresAdmin {
|
||||
}
|
||||
+1
-1
@@ -9,6 +9,6 @@ import java.lang.annotation.Target;
|
||||
|
||||
@Target({ElementType.METHOD, ElementType.TYPE})
|
||||
@Retention(RetentionPolicy.RUNTIME)
|
||||
@PreAuthorize("isAuthenticated() && hasRole('ROLE_SUPER_USER')")
|
||||
@PreAuthorize("isAuthenticated() && hasRole('SUPER_USER')")
|
||||
public @interface RequiresSuperUser {
|
||||
}
|
||||
Reference in new issue
Block a user