We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f5d563c commit df28327Copy full SHA for df28327
plugin/azure_active_directory/src/callback.php
@@ -97,10 +97,9 @@
97
98
$azureGroups = $provider->get('me/memberOf', $token);
99
100
- foreach ($azureGroups as $azureGroup) {
101
- $azureGroupUid = $azureGroup['objectId'];
102
-
103
- foreach ($roleGroups as $userRole => $groupUid) {
+ foreach ($roleGroups as $userRole => $groupUid) {
+ foreach ($azureGroups as $azureGroup) {
+ $azureGroupUid = $azureGroup['objectId'];
104
if ($azureGroupUid === $groupUid) {
105
$roleActions[$userRole]($user);
106
0 commit comments