We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82fbb3a commit 761218eCopy full SHA for 761218e
src/main/java/com/ics/services/SecurityService.java
@@ -18,10 +18,10 @@ public boolean hasAuthority(Authority ...authorities){
18
19
// check if the user has the required authority
20
for( Authority authority : authorities){
21
-// SimpleGrantedAuthority simpleGrantedAuthority = new SimpleGrantedAuthority(authority.getAuthority());
22
-// if(userAuthorities.contains(simpleGrantedAuthority)){
+ SimpleGrantedAuthority simpleGrantedAuthority = new SimpleGrantedAuthority(authority.getAuthority());
+ if(userAuthorities.contains(simpleGrantedAuthority)){
23
return true;
24
-// }
+ }
25
}
26
27
// return false if the user does not have the required authority
0 commit comments