1
0
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:
Dan Brown
2023-01-24 21:26:41 +00:00
parent 8be36455ab
commit 1fa5a31960
3 changed files with 54 additions and 0 deletions

View File

@@ -66,6 +66,10 @@ class EntityPermissionEvaluator
$permitsByType[$type][$roleId] = $permission->{$this->action};
}
}
if (isset($permitsByType['fallback'][0])) {
break;
}
}
return $permitsByType;