ilgrosso commented on a change in pull request #176:
URL: https://github.com/apache/syncope/pull/176#discussion_r411946603



##########
File path: 
core/am/logic/src/main/java/org/apache/syncope/core/logic/AuthModuleLogic.java
##########
@@ -60,7 +59,8 @@ public AuthModuleTO update(final AuthModuleTO authModuleTO) {
         return 
binder.getAuthModuleTO(authModuleDAO.save(binder.update(authModule, 
authModuleTO)));
     }
 
-    @PreAuthorize("hasRole('" + AMEntitlement.AUTH_MODULE_LIST + "')")
+    @PreAuthorize("isAnonymous() or hasRole('" + AMEntitlement.AUTH_MODULE_LIST

Review comment:
       I see, then I'd remove `isAnonymous()` from the list, thus leaving the 
condition "`IdRepoEntitlement.ANONYMOUS` or `AMEntitlement.AUTH_MODULE_LIST`"




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to