feat: don't assign multiple administrative roles at the same time
This commit is contained in:
1 parent
7c7addf531
commit
2cb4fa1933
1 file changed
+3
-4
@@ -26,13 +26,12 @@ class UserDataHandler
|
||||
|
||||
if ($crmAttributes->isAdmin()) {
|
||||
$roles[] = 'ROLE_ADMIN';
|
||||
}
|
||||
if ($crmAttributes->isManager()) {
|
||||
} elseif ($crmAttributes->isManager()) {
|
||||
$roles[] = 'ROLE_MANAGER';
|
||||
}
|
||||
if ($crmAttributes->isHouseManager()) {
|
||||
} elseif ($crmAttributes->isHouseManager()) {
|
||||
$roles[] = 'ROLE_HOUSE_MANAGER';
|
||||
}
|
||||
|
||||
if ($crmAttributes->isTeamer()) {
|
||||
$roles[] = 'ROLE_TEAMER';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user