Fullscreen
[Show/Hide Right Column]

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

noteNote

  • 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)


Contributors to this page: lindon5653 points  , Marc Laporte8178 points  , sylvie7160 points  and system .
Page last modified on Saturday 13 March, 2010 00:43:49 UTC by lindon5653 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki