0
0
Fork 0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-05-12 11:51:54 +00: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
No known key found for this signature in database
GPG key ID: 46D9F943C24A2EF9
3 changed files with 54 additions and 0 deletions

View file

@ -317,4 +317,27 @@ User granted page permission.
- Role B has no entity chapter permissions.
- User has Role A & B.
User denied page permission.
#### test_90_fallback_overrides_parent_entity_role_deny
- Chapter permissions have inherit disabled.
- Page permissions have inherit disabled.
- Chapter fallback has entity deny permission.
- Page fallback has entity deny permission.
- Role A has entity allow chapter permission.
- User has Role A.
User denied page permission.
#### test_91_fallback_overrides_parent_entity_role_inherit
- Book permissions have inherit disabled.
- Chapter permissions have inherit disabled.
- Page permissions have inherit enabled.
- Book fallback has entity deny permission.
- Chapter fallback has entity deny permission.
- Role A has entity allow book permission.
- User has Role A.
User denied page permission.