Skip to content

reference:U userHasPermission

Aaron Junker edited this page Mar 20, 2021 · 4 revisions

Function userHasPermission(string $module, string $submodule = "", string $subsubmodule = "", bool $debug = False):bool

Queries if the currently logged in user has a permission to do something. More information for the permission system can be found here.

Argumets

$module

Name of the module.

$submodule

Name of the submodule.

$subsubmodule

Name of the subsubmodule.

Return value

True if the user has the permission and False if not.

Example

$U->addPage("blog", "Test", "<p>test</p>", 1, date("Y-m-d"), 1);

Clone this wiki locally