Commit 56f0a7e6 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Fixing role auto

parent f7fdb65c
Loading
Loading
Loading
Loading
+2 −0
Changes for src/UnicaenUtilisateur/Controller/RoleController.php: 2 added lines, 0 removed lines.
Original line number Diff line number Diff line
@@ -34,6 +34,8 @@ class RoleController extends AbstractActionController {
        /** @var RoleInterface[] $roles */
        $roles = $this->roleService->findAll();

        $ip = $this->identityProviders;

        return new ViewModel([
            'title' => "Gestion des rôles",
            'roles' => $roles,
+1 −1
Changes for view/unicaen-utilisateur/role/index.phtml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ $canEffacer = $this->isAllowed(RolePrivileges::getResourceId(RolePrivileges:
                                }
                            ?>
                            <?php if($result): ?>
                                <i class="fas fa-user"></i> <?php echo $nbUser; ?>
                                <i class="fas fa-user"></i> <?php echo count($result); ?>
                            <?php else: ?>
                                <span class="text-warning"><i class="fas fa-exclamation-triangle"></i> Aucune méthode de calcul associée à ce rôle automatique.</span>
                            <?php endif; ?>