1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Added notice for lack of shelf permission cascade

Closes #2876
This commit is contained in:
Dan Brown
2021-08-28 15:44:44 +01:00
parent cd35e13024
commit 82c6597a60
4 changed files with 13 additions and 1 deletions

View File

@ -308,6 +308,13 @@ class BookShelfTest extends TestCase
$this->assertDatabaseHas('entity_permissions', ['restrictable_id' => $child->id, 'action' => 'update', 'role_id' => $editorRole->id]);
}
public function test_permission_page_has_a_warning_about_no_cascading()
{
$shelf = Bookshelf::first();
$resp = $this->asAdmin()->get($shelf->getUrl('/permissions'));
$resp->assertSeeText('Permissions on bookshelves do not automatically cascade to contained books.');
}
public function test_bookshelves_show_in_breadcrumbs_if_in_context()
{
$shelf = Bookshelf::first();