@@ -41,8 +41,8 @@ discard block |
||
| 41 | 41 | $graph = new \Microsoft\Graph\Graph(); |
| 42 | 42 | $graph->setAccessToken($accessToken); |
| 43 | 43 | $user = $graph->createRequest('GET', '/me') |
| 44 | - ->setReturnType(\Microsoft\Graph\Model\User::class) |
|
| 45 | - ->execute(); |
|
| 44 | + ->setReturnType(\Microsoft\Graph\Model\User::class) |
|
| 45 | + ->execute(); |
|
| 46 | 46 | |
| 47 | 47 | return $user->jsonSerialize(); |
| 48 | 48 | } |
@@ -173,9 +173,9 @@ discard block |
||
| 173 | 173 | if (count($groups)) { |
| 174 | 174 | // remove the users existing database roles before assigning new ones |
| 175 | 175 | \DB::table('assigned_roles') |
| 176 | - ->where('entity_id', $user->id) |
|
| 177 | - ->where('entity_type', get_class($user)) |
|
| 178 | - ->delete(); |
|
| 176 | + ->where('entity_id', $user->id) |
|
| 177 | + ->where('entity_type', get_class($user)) |
|
| 178 | + ->delete(); |
|
| 179 | 179 | // TRY to add the user to each group they are assigned |
| 180 | 180 | try { |
| 181 | 181 | $user->assign($groups); |