src/Kunstmaan/AdminBundle/Helper/Security/Acl/Permission/PermissionAdmin.php
public function getManageableRolesForPages()
    {
        $roles = $this->em->getRepository('KunstmaanAdminBundle:Role')->findAll();

        if (($token = $this->tokenStorage->getToken()) && ($user = $token->getUser())) {
            if ($user && !$user->isSuperAdmin() && ($superAdminRole = array_keys($roles, 'ROLE_SUPER_ADMIN'))) {
                $superAdminRole = current($superAdminRole);
                unset($roles[$superAdminRole]);
            }
        }

        return $roles;
    }
public function getManageableRolesForPages()
    {
        $roles = $this->em->getRepository('KunstmaanAdminBundle:Role')->findAll();

        if (($token = $this->tokenStorage->getToken()) && ($user = $token->getUser())) {
            if ($user && !$user->isSuperAdmin() && ($superAdminRole = array_keys($roles, 'ROLE_SUPER_ADMIN'))) {
                $superAdminRole = current($superAdminRole);
                unset($roles[$superAdminRole]);
            }
        }

        return $roles;
    }
public function getManageableRolesForPages ( ) { $ roles = $ this -> em -> getRepository ( 'KunstmaanAdminBundle:Role' ) -> findAll ( ) ; if ( ( $ token = $ this -> tokenStorage -> getToken ( ) ) && ( $ user = $ token -> getUser ( ) ) ) { if ( $ user && ! $ user -> isSuperAdmin ( ) && ( $ superAdminRole = array_keys ( $ roles , 'ROLE_SUPER_ADMIN' ) ) ) { $ superAdminRole = current ( $ superAdminRole ) ; unset ( $ roles [ $ superAdminRole ] ) ; } } return $ roles ; }
Get all manageable roles for pages

@return Role[]
Get all manageable roles for pages