Commit 1c0e3613 authored by Jean-Philippe Metivier's avatar Jean-Philippe Metivier
Browse files

Fix calcul de la liste des utilisateurs ayant un rôle (cas null)

parent 112dd89c
Loading
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -9,8 +9,7 @@
    ],
    "require": {
        "unicaen/app": ">=5.0",
        "unicaen/mail": ">=5.0",
        "laminas/laminas-dependency-plugin": "^2.1"
        "unicaen/mail": ">=5.0"
    },
    "require-dev": {
        "phpunit/phpunit": ">=3.7"

composer.lock

0 → 100644
+6964 −0

File added.

Preview size limit exceeded, changes collapsed.

+1 −1
Original line number Diff line number Diff line
@@ -54,7 +54,7 @@ class RoleController extends AbstractActionController {
            if ($this->identityProviders !== null) {
                foreach ($this->identityProviders as $identityProvider) {
                    if (method_exists($identityProvider, "computeUsersAutomatiques")) {
                        $users = array_merge($users, $identityProvider->computeUsersAutomatiques($role->getRoleId()));
                        $users = array_merge($users, $identityProvider->computeUsersAutomatiques($role->getRoleId())??[]);
                    }
                }
            }