1. Sebastian Sdorra
  2. scm-manager

Commits

Sebastian Sdorra  committed 2beaa2f

fix privileged action is not executed, if the user is already an admin

  • Participants
  • Parent commits cef08c9
  • Branches default

Comments (0)

Files changed (1)

File scm-webapp/src/main/java/sonia/scm/web/security/DefaultAdministrationContext.java

View file
       if (subject.hasRole(Role.ADMIN))
       {
         logger.debug(
-          "user is already an admin, we need no system account session");
+          "user is already an admin, we need no system account session, execute action {}",
+          action.getClass().getName());
+        action.run();
       }
       else
       {