mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-12 08:25:44 +01:00
removes admin role
This commit is contained in:
@@ -124,19 +124,7 @@ public class DefaultAdministrationContext implements AdministrationContext
|
||||
|
||||
if (ThreadContext.getSecurityManager() != null)
|
||||
{
|
||||
Subject subject = SecurityUtils.getSubject();
|
||||
|
||||
if (subject.hasRole(Role.ADMIN))
|
||||
{
|
||||
logger.debug(
|
||||
"user is already an admin, we need no system account session, execute action {}",
|
||||
action.getClass().getName());
|
||||
action.run();
|
||||
}
|
||||
else
|
||||
{
|
||||
doRunAsInWebSessionContext(action);
|
||||
}
|
||||
doRunAsInWebSessionContext(action);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user