Posted 1256210278|%O ago by wstone
A module to display the current permissions of the site.
[[module Permissions options...]]
Displays the permissions table similar to the one found on the site management page. Each cell would have a disabled checkbox that is set to either true/false based on whether that permission is active for the given category and user level.
If more than one category or user level is requested using parameters, then they are shown one after another on the page.
Applies to Permissions module:
Level selector:
Category selector:
Pagename selector:
[[module Permissions level="* -mod -admin" category="forum" pagename="forum-start"]]
This would show permissions for all wikidot users, except moderators and administrators, from the forum category, and the page forum-start in the _default category.
list
How about this module acts like the rest of the modules — I say we remove the list parameter and replace it with these three:
notes
Can you explain what you mean by that? You've completely lost me on that one! :)
hidecategory
Not needed, just specify categories… as I mentioned above
hideclass
Not needed, just specify user level… as I mentioned above
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
That sounds like a more convenient way of handling it. Feel free to update the wiki in accordance with your post.
Maybe it should be called "adminNotes" or something more informative…?
Okay, well are you sure that needs to be put into the module? I mean, it's static text, so it can easily be added to the page by the site owner if they want it… I've moved that part to "other information" at the very end, so it's easy to delete/change to the same format as the rest.
I used the format used in the ListPages module design docs for this, because it's more flexible than using a table.
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
Great! I want to start using this for new documentation, the old table format is a royal pain.
Portfolio
OK, I think that was me being a bit over-zealous :s
Is now looking far more professional.
I like this. It would be nice to have a small section on the page which tells the current user what permissions they have and not have them confused as to the level they actually are.
Roll out the module :D
I was thinking the same thing. Simply listing the current user's permissions would be much better than having any of this…. but it all goes back to caching restrictions :(
The cache might help with performance, but it also brings with it some serious limitations.
~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server | NEW: Wikiroo, backup tool (in development)
OK, I've moved this proposal to the design section. Nice work, guys.
Portfolio