mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-08 06:25:45 +01:00
fix privileged action is not executed, if the user is already an admin
This commit is contained in:
@@ -129,7 +129,9 @@ public class DefaultAdministrationContext implements AdministrationContext
|
||||
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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user