Skip to content
Snippets Groups Projects
Unverified Commit c0895118 authored by Bekerle, Patrizio's avatar Bekerle, Patrizio 🔥
Browse files

Add a default value for ldap-roles

parent b1e1eb5e
No related branches found
No related tags found
No related merge requests found
Pipeline #85936 passed
...@@ -298,6 +298,11 @@ class LDAPApi implements LoggerAwareInterface, ServiceSubscriberInterface ...@@ -298,6 +298,11 @@ class LDAPApi implements LoggerAwareInterface, ServiceSubscriberInterface
$person = $this->getCurrentPerson(); $person = $this->getCurrentPerson();
if ($person !== null) { if ($person !== null) {
$roles = $person->getExtraData('ldap-roles'); $roles = $person->getExtraData('ldap-roles');
if ($roles === null) {
return [];
}
assert(is_array($roles)); assert(is_array($roles));
return $roles; return $roles;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment