CPG-Nuke source documentation ⇒ CPG Dragonfly™ CMS
Files - Classes
  includes/cmsinit.inc
includes
properties
functions
can_admin

boolean can_admin(string $module)

Returns if the current admin that is viewing the page has the rights to administer the content.
It's only useful if the specified module has a 'radmin' field in admins table.
if (can_admin('downloads')) { echo 'Admin is allowed to edit the content of the Downloads module'; }

Arguments

  • $module [optional, default value = super]

    contains the name of the module in lowercase