Просмотр исходного кода

Update RealmAuthenticationProvider.java

Crystal.Sea 5 лет назад
Родитель
Сommit
d1711105e3
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      maxkey-core/src/main/java/org/maxkey/authn/RealmAuthenticationProvider.java

+ 2 - 2
maxkey-core/src/main/java/org/maxkey/authn/RealmAuthenticationProvider.java

@@ -168,8 +168,8 @@ public class RealmAuthenticationProvider extends AbstractAuthenticationProvider
         
         
         authentication.setAuthenticated(true);
         authentication.setAuthenticated(true);
         
         
-        for(GrantedAuthority grantedAuthority : grantedAuthoritys) {
-            if(grantedAdministratorsAuthoritys.contains(grantedAuthority)) {
+        for(GrantedAuthority administratorsAuthority : grantedAdministratorsAuthoritys) {
+            if(grantedAuthoritys.contains(administratorsAuthority)) {
                 authentication.setRoleAdministrators(true);
                 authentication.setRoleAdministrators(true);
                 _logger.trace("ROLE ADMINISTRATORS Authentication .");
                 _logger.trace("ROLE ADMINISTRATORS Authentication .");
             }
             }