-
Notifications
You must be signed in to change notification settings - Fork 2
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
Feature suggestion: Checking permissions, rather than users/groups #13
Comments
So ACL in Dokuwiki have a "level" configuration, so it would be possible to test the authorization against a certain level. However there are some points that are unclear, to me:
|
This might be useful in a situation where there are a lot of groups that give access to the same pages. Currently, you have to build logic like:
If you've used ifauthex in quite a few places, and now want to add or rename a group, or change what the group can access, you have to update every page where ifauth is in use to make sure the ifauth groups are correct. If it could check if "current user has read access to a target page", this would become something like:
A bit simpler. The only slight downside is that it might become complex to understand why (or why not) a user sees particular ifauth output if there are a lot of groups. You are going to have to look in User Manager to see which groups the user belongs to, and then look in ACL manager for the page to understand why it's showing content (or not). That's not something a regular user can do, only superusers. A regular user can contact the admin to say "Fred can't see this. Can you add fred to group X?" but harder to say "I want only for people with access to this page. Fred can't see it, but I don't know why, or what groups he should be in." Other possible solutions:
Then if you want to update the list of groups, it only has to be done in one place.
Then it would match "group_foo, group_bar, group_baz" etc. |
Ok I understand the purpose now. In fact, in this specific case, it could even benefit from a |
In my case, I want to have a page that shows Struct plugin data, and allows creating new pages with that data on. More concretely, imagine I have a namespace The I could just show the form, and if they didn't have permission, they'd get an error, but that doesn't feel like good UI, so I was looking for something that could show and hide parts of the page based on permissions elsewhere in the site. |
I've been looking for a plugin to show/hide content based on authorisation, not just authentication, and it looks as though combining this into the ifauthex plugin might be one way to go. Essentially, I'd like to see a syntax to check whether a user has any particular permissions on a target. Examples, in a made up syntax:
User/group would default to the current user if not given, and target would default to the current page if not given. These specifications could combined with the existing user/group rules to allow fine-grained showing/hiding of content based on both who they are and whether they have permission.
Being able to check the permissions on a page/namespace other than the current one would be useful to be able to show a form to create a page based on whether the user could complete the action, for instance.
The text was updated successfully, but these errors were encountered: