1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-05 00:42:14 +03:00

Split out 'restrictEntityQuery' function components

Also fixed search query issue with abiguous column
This commit is contained in:
Dan Brown
2023-01-13 16:07:36 +00:00
parent 026e9030b9
commit 2f1491c5a4
4 changed files with 81 additions and 34 deletions

View File

@@ -25,7 +25,7 @@ class FrameworkAssumptionTest extends TestCase
// Page has SoftDeletes trait by default, so we apply our custom scope and ensure
// it stacks on the global scope to filter out deleted items.
$query = Page::query()->scopes('visible')->toSql();
$this->assertStringContainsString('joint_permissions', $query);
$this->assertStringContainsString('entity_permissions_collapsed', $query);
$this->assertStringContainsString('`deleted_at` is null', $query);
}
}