mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-08-07 23:03:00 +03:00
Fixed role entity permissions ignoring inheritance
Added additional scnenario tests to cover
This commit is contained in:
@@ -66,6 +66,10 @@ class EntityPermissionEvaluator
|
||||
$permitsByType[$type][$roleId] = $permission->{$this->action};
|
||||
}
|
||||
}
|
||||
|
||||
if (isset($permitsByType['fallback'][0])) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return $permitsByType;
|
||||
|
Reference in New Issue
Block a user