Fullscreen
[Show/Hide Right Column]

Plugin Perm

This plugin displays content based on permission settings. It is related to PluginGroup.

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: Marc Laporte9146 points  , sylvie7387 points  and system .
Page last modified on Monday 16 April, 2012 03:19:59 UTC by Marc Laporte9146 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