Skip to content

Commit 761218e

Browse files
committed
force authoritization fr
1 parent 82fbb3a commit 761218e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/com/ics/services/SecurityService.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ public boolean hasAuthority(Authority ...authorities){
1818

1919
// check if the user has the required authority
2020
for( Authority authority : authorities){
21-
// SimpleGrantedAuthority simpleGrantedAuthority = new SimpleGrantedAuthority(authority.getAuthority());
22-
// if(userAuthorities.contains(simpleGrantedAuthority)){
21+
SimpleGrantedAuthority simpleGrantedAuthority = new SimpleGrantedAuthority(authority.getAuthority());
22+
if(userAuthorities.contains(simpleGrantedAuthority)){
2323
return true;
24-
// }
24+
}
2525
}
2626

2727
// return false if the user does not have the required authority

0 commit comments

Comments
 (0)