mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-15 00:16:28 +08:00
Updated test for perms. changes and fixed static issues
This commit is contained in:
@ -83,7 +83,7 @@ class PermissionApplicator
|
||||
->pluck($action, 'role_id');
|
||||
|
||||
// Continue up the chain if no applicable entity permission overrides.
|
||||
if (empty($allowedByRoleId)) {
|
||||
if ($allowedByRoleId->isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
@ -47,7 +47,7 @@ class PermissionFormData
|
||||
*/
|
||||
public function everyoneElseEntityPermission(): EntityPermission
|
||||
{
|
||||
/** @var EntityPermission $permission */
|
||||
/** @var ?EntityPermission $permission */
|
||||
$permission = $this->entity->permissions()
|
||||
->where('role_id', '=', 0)
|
||||
->first();
|
||||
|
Reference in New Issue
Block a user