X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/a6633642232efd164d4708967ab59e498fbff896..refs/pull/2902/head:/app/Auth/Access/ExternalAuthService.php diff --git a/app/Auth/Access/ExternalAuthService.php b/app/Auth/Access/ExternalAuthService.php index 4c71db21a..7bd3679ac 100644 --- a/app/Auth/Access/ExternalAuthService.php +++ b/app/Auth/Access/ExternalAuthService.php @@ -1,10 +1,10 @@ -display_name))); + return in_array($roleName, $groupNames); } @@ -57,7 +58,7 @@ class ExternalAuthService } /** - * Sync the groups to the user roles for the current user + * Sync the groups to the user roles for the current user. */ public function syncWithGroups(User $user, array $userGroups): void {