X-Git-Url: http://source.bookstackapp.com/bookstack/blobdiff_plain/e83d2eedbb9f2c06ca818ddbe0d47205d41c2e3f..refs/pull/3391/head:/app/Console/Commands/CopyShelfPermissions.php diff --git a/app/Console/Commands/CopyShelfPermissions.php b/app/Console/Commands/CopyShelfPermissions.php index 6b5d35a47..32adf0683 100644 --- a/app/Console/Commands/CopyShelfPermissions.php +++ b/app/Console/Commands/CopyShelfPermissions.php @@ -2,7 +2,7 @@ namespace BookStack\Console\Commands; -use BookStack\Entities\Bookshelf; +use BookStack\Entities\Models\Bookshelf; use BookStack\Entities\Repos\BookshelfRepo; use Illuminate\Console\Command; @@ -54,13 +54,14 @@ class CopyShelfPermissions extends Command if (!$cascadeAll && !$shelfSlug) { $this->error('Either a --slug or --all option must be provided.'); + return; } if ($cascadeAll) { $continue = $this->confirm( - 'Permission settings for all shelves will be cascaded. '. - 'Books assigned to multiple shelves will receive only the permissions of it\'s last processed shelf. '. + 'Permission settings for all shelves will be cascaded. ' . + 'Books assigned to multiple shelves will receive only the permissions of it\'s last processed shelf. ' . 'Are you sure you want to proceed?' );