Plugin Perm
This Mod plugin displays content based on permission settings. It is related to PluginGroup. This plugin can be found in the mods (mods.tikiwiki.org or on cvs sourceforge).Use and Parameters
To display a module in a wiki page, use the syntax:{PERM(perms=>tiki_p_view|tiki_p_edit, notperms=>tiki_p_rename, global=1)}some content{ELSE}other content{PERM}| Parameter | Accepted values | Effect | Since | |
|---|---|---|---|---|
| perms | String - each perm is separated with a vertical bar | displays 'some content' if user has these permissions and displays 'other content' (after {ELSE}) if the user doesn't | ||
| notperms | String - each perm is separated with a vertical bar | Works as the opposite of perms | 1.9.7 | |
| global | 1 or 0 | global perm or local perm to the object | 1.9.7 |
- The part {ELSE} is optional.
- Both parameters perms and notperms can be used together.
Security
- Be careful not to use this plugin to display secure information if the user can see the source
- Local perm may not work depending on the place or object the syntax is inserted (ex: works for tiki-index.php but not for tiki-editpage.php)
