]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Tools/PermissionsUpdater.php
Permissions: Cleanup after review of enum implementation PR
[bookstack] / app / Entities / Tools / PermissionsUpdater.php
index fbf92e2033e6d8e23495c088e588457beeabe2c4..fa9ae753c516e299b58b47f4ccc6071537d3f793 100644 (file)
@@ -150,7 +150,7 @@ class PermissionsUpdater
 
         /** @var Book $book */
         foreach ($shelfBooks as $book) {
-            if ($checkUserPermissions && !userCan(\BookStack\Permissions\Permission::RestrictionsManage, $book)) {
+            if ($checkUserPermissions && !userCan(Permission::RestrictionsManage, $book)) {
                 continue;
             }
             $book->permissions()->delete();