Warning: Undefined variable $filepath in /home/tiki-doc/public_html/lib/wiki-plugins/wikiplugin_tikidocfromcode.php on line 146
Display content based on permission settings | Documentation for Tiki Wiki CMS Groupware
Loading...
 
Skip to main content
Display content based on permission settings

Plugin Permission

Introduced in Tiki5

Use this wiki plugin to display content based on permission settings. It is related to PluginGroup.

Parameters

Tiki Doc From Code error: perm not found
 Note
  • 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 permissions 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 )

Examples

Basic syntax

Copy to clipboard
{PERM(perms="tiki_p_view|tiki_p_edit" notperms="tiki_p_rename")}some content{ELSE}other content{PERM}


Created by system. Last Modification: Friday 26 July, 2019 13:00:27 GMT-0000 by Yves Kipondo.
Show PHP error messages