mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-10 07:25:44 +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))
|
if (subject.hasRole(Role.ADMIN))
|
||||||
{
|
{
|
||||||
logger.debug(
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user