diff --git a/Security/EditableRolesBuilder.php b/Security/EditableRolesBuilder.php index a570887a1..d50293bc9 100644 --- a/Security/EditableRolesBuilder.php +++ b/Security/EditableRolesBuilder.php @@ -107,7 +107,9 @@ public function getRoles() } } - $isMaster = $this->authorizationChecker->isGranted('ROLE_SUPER_ADMIN'); + $isMaster = $this->authorizationChecker->isGranted( + $this->pool->getOption('role_super_admin', 'ROLE_SUPER_ADMIN') + ); // get roles from the service container foreach ($this->rolesHierarchy as $name => $rolesHierarchy) {