]> BookStack Code Mirror - bookstack/blobdiff - app/Console/Commands/CopyShelfPermissions.php
Guest create page: name field autofocus
[bookstack] / app / Console / Commands / CopyShelfPermissions.php
index 18719ae2efeb482f6ae6c245626f8863a332a1cd..ec4c875ffa97d3935d0101383559d7ff63508c54 100644 (file)
@@ -66,11 +66,11 @@ class CopyShelfPermissions extends Command
                 return;
             }
 
-            $shelves = Bookshelf::query()->get(['id', 'restricted']);
+            $shelves = Bookshelf::query()->get(['id']);
         }
 
         if ($shelfSlug) {
-            $shelves = Bookshelf::query()->where('slug', '=', $shelfSlug)->get(['id', 'restricted']);
+            $shelves = Bookshelf::query()->where('slug', '=', $shelfSlug)->get(['id']);
             if ($shelves->count() === 0) {
                 $this->info('No shelves found with the given slug.');
             }