Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page Rules on Groups: Limiting by "Tags" won't work on assets #2216

Open
KingRial opened this issue Jul 22, 2020 · 0 comments
Open

Page Rules on Groups: Limiting by "Tags" won't work on assets #2216

KingRial opened this issue Jul 22, 2020 · 0 comments
Assignees

Comments

@KingRial
Copy link

@KingRial KingRial commented Jul 22, 2020

Describe the bug
When configuring "Page Rules" the administration allow to limit access by "Tags" (which is, by far, the most intuitive and fast way to configure access rights).

However these limits won't work correctly on assets added to pages.

To Reproduce
Steps to reproduce the behavior:

  1. Access Administration
  2. Create a User Group
  3. Add a simple page rule based on Tag matches
  4. Create a User and assign it to the User Group
  5. Create a Page and use the correct tag
  6. Add an asset to the page
  7. Access the page with the created user. Page should be accessible while the asset shouldn't

Expected behavior
Assets should have tags too or being able to inherit them from pages on which are inserted

Screenshots
image
As shown in the previou screenshot, to limit access to the assets I had to:

  • build a specific tree structure on which upload the assets
  • add more rules, based on paths, to allow the correct access rights to the assets

Host Info:

  • OS: Linux, Debian 10, Docker
  • Wiki.js version: 2.4.107
  • Database engine: postgres 9.7

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.