-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Page rules not working as intended #998
Description
Describe the bug
Adding a deny rule denies user from all content and results in a login loop.
Scenario: There is a CoreResearch page along with sub-pages. Want a new group to have read access to all the content. However, the new group can write only pages that start with CoreResearch.
Three rules are created:
Rule1-Allow permissions for pages that start with /
- Read page
- Read/Use assets
- Read comments
- Write comments
Rule2-Permissions for pages that start with /CoreResearch
Allow all
Rule3-Permissions for pages that start with /
Deny all write permissions (compliment of rule1 permissions)
To Reproduce
Steps to reproduce the behavior:
- Create a new user (let's call it su1)
- Create a new group (let's call it Core)
- Create a page called /CoreResearch
- Give all "CONTENT" permission to group Core from Edit Group
- Apply 3 rules described above to the group Core (see screenshot)
- Login with the new user su1 and it would get into a login loop, probably because the new user does not have permission for anything
Expected behavior
User su1 is able to read all content and edit pages under /CoreResearch
Host Info (please complete the following information):
- OS: Ubuntu 18.04, Linux Install
- Wiki.js version: 2.0.0-beta.275
- Database engine: postgres 10.9
Additional context
It might be so that I am not defining the rules correctly. For the guest group, I gave a deny that /CoreResearch should not have any of the permissions. This works perfectly.
