]> BookStack Code Mirror - bookstack/blobdiff - app/Permissions/PermissionApplicator.php
Permissions: Updated guest user handling so additional roles apply
[bookstack] / app / Permissions / PermissionApplicator.php
index 8a02f82e89bef03bd6297add1feeae921a49b5b7..b4fafaa9ee1756f6604d5cc20f46e2091ed5f787 100644 (file)
@@ -183,10 +183,6 @@ class PermissionApplicator
      */
     protected function getCurrentUserRoleIds(): array
     {
-        if (auth()->guest()) {
-            return [Role::getSystemRole('public')->id];
-        }
-
         return $this->currentUser()->roles->pluck('id')->values()->all();
     }