@Override public void checkSuperAdmin(UserInfo.Username userID) { if (authorizationRepository.checkSuperAdminPermissions(userID, null) == null) { throw new AuthenticationException("error, user " + userID + " is not a superadmin"); } }
@Override public void checkSuperAdmin(UserInfo.Username userID) { if (authorizationRepository.checkSuperAdminPermissions(userID, null) == null) { throw new AuthenticationException("error, user " + userID + " is not a superadmin"); } }