1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-31 15:24:31 +03:00

Dropped use of non-view joint permissions

This commit is contained in:
Dan Brown
2022-07-16 21:50:42 +01:00
parent 2332401854
commit 8f90996cef
4 changed files with 74 additions and 54 deletions

View File

@ -90,6 +90,7 @@ class PublicActionTest extends TestCase
$publicRole->attachPermission($perm);
}
$this->app->make(JointPermissionBuilder::class)->rebuildForRole($publicRole);
user()->clearPermissionCache();
/** @var Chapter $chapter */
$chapter = Chapter::query()->first();