diff --git a/database/migrations/2023_06_25_181952_remove_bookshelf_create_entity_permissions.php b/database/migrations/2023_06_25_181952_remove_bookshelf_create_entity_permissions.php new file mode 100644 index 000000000..efb65972b --- /dev/null +++ b/database/migrations/2023_06_25_181952_remove_bookshelf_create_entity_permissions.php @@ -0,0 +1,29 @@ +where('entity_type', '=', 'bookshelf') + ->update(['create' => 0]); + } + + /** + * Reverse the migrations. + * + * @return void + */ + public function down() + { + // No structural changes to make, and we cannot know the permissions to re-assign. + } +}; diff --git a/resources/views/form/entity-permissions-row.blade.php b/resources/views/form/entity-permissions-row.blade.php index 6b515af86..5c2e86741 100644 --- a/resources/views/form/entity-permissions-row.blade.php +++ b/resources/views/form/entity-permissions-row.blade.php @@ -44,7 +44,7 @@ $inheriting - Boolean if the current row should be marked as inheriting default 'disabled' => $inheriting ]) - @if($entityType !== 'page') + @if($entityType !== 'page' && $entityType !== 'bookshelf')