Permissions Module
nav_first.pngFirst: thread:131
HTML Block
Edited: 11 Oct 2012 12:06 by: James Kanjo
Comments: 0
Tags:
nav_prev.pngPrevious: thread:122
Consistent link grammar
Edited: 12 Nov 2009 12:27 by: pieterh
Comments: 0
Tags:
Last: thread:112
Image Module
Edited: 12 Nov 2009 12:22 by: pieterh
Comments: 0
Tags:
nav_last.png
Next: thread:139
Parenthood Module
Edited: 12 Nov 2009 12:26 by: pieterh
Comments: 0
Tags:
nav_next.png

Steven HeynderickxSteven Heynderickx wrote on 10 Nov 2009 15:58

Originally suggested by pieterhpieterh on 24 October 2009.

This is a design sketch for the Permissions module, which displays the current permissions of the site.

Implementation

[[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.

Selectors

Applies to Permissions module:

  • Select by user level: level="level-selector"
    (modified version of this selector applies to Private1 module)
  • Select by category: category="category-selector"
    (also applies to ListPages and CountPages modules)
  • Select by pagename: pagename="pagename-selector"

Level selector:

  • Of the form: level="anon|wikidot|member|mod|admin"
  • "." means current user level (default)
  • "*" means all user levels
  • else, a list of space/comma delimited levels
  • levels are by default additive (level OR level OR level)
  • "-level" means exclude this page (AND NOT)

Category selector:

  • "." means current category (default)
  • "*" means all categories
  • else, a list of space/comma delimited categories
  • categories are by default additive (category OR category OR category)
  • "-category" means exclude this category (AND NOT)

Pagename selector:

  • "." means current page (default)
  • "*" means all pages (equivalent to category="*")
  • else, a list of space/comma delimited pagenames
  • pagenames are by default additive (pagename OR pagename OR pagename)
  • "-pagename" means exclude this page (AND NOT)

Example of use

[[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.


Start a new sub-thread

We discourage direct comments on this thread: to discuss it, please start a sub-thread.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License