@ -62,12 +62,15 @@ public final class AuthorityAuthorizationManager<T> implements AuthorizationMana
@@ -62,12 +62,15 @@ public final class AuthorityAuthorizationManager<T> implements AuthorizationMana
Assert.isTrue(!role.startsWith(ROLE_PREFIX),()->role+" should not start with "+ROLE_PREFIX+" since "
+ROLE_PREFIX+" is automatically prepended when using hasRole. Consider using hasAuthority instead.");
returnhasAuthority(ROLE_PREFIX+role);
}
@ -86,7 +89,8 @@ public final class AuthorityAuthorizationManager<T> implements AuthorizationMana
@@ -86,7 +89,8 @@ public final class AuthorityAuthorizationManager<T> implements AuthorizationMana
@ -125,7 +129,11 @@ public final class AuthorityAuthorizationManager<T> implements AuthorizationMana
@@ -125,7 +129,11 @@ public final class AuthorityAuthorizationManager<T> implements AuthorizationMana