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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user