Skip to content

Commit 3a14745

Browse files
thurijzheaux
authored andcommitted
Delegate calls of hasAuthority to AuthorizationManager#hasAuthority
Closes gh-18486 Signed-off-by: Michael Lück <michael@lueckonline.net>
1 parent c29af01 commit 3a14745

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

core/src/main/java/org/springframework/security/access/expression/SecurityExpressionRoot.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public SecurityExpressionRoot(Supplier<? extends @Nullable Authentication> authe
116116

117117
@Override
118118
public final boolean hasAuthority(String authority) {
119-
return isGranted(this.authorizationManagerFactory.hasAnyAuthority(authority));
119+
return isGranted(this.authorizationManagerFactory.hasAuthority(authority));
120120
}
121121

122122
@Override

0 commit comments

Comments
 (0)