Skip to content

Commit

Permalink
Use the admin pool option to get the master role name
Browse files Browse the repository at this point in the history
  • Loading branch information
gremo authored and jlamur committed Sep 21, 2017
1 parent e0df29b commit 530494e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Security/EditableRolesBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 530494e

Please sign in to comment.