Skip to content

reference:U userHasPermission

Aaron Junker edited this page Apr 24, 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.

Arguments

$module

Name of the module.

$submodule

  • Optional Name of the submodule.

$subsubmodule

  • Optional Name of the subsubmodule.

Return value

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

Example

$U->userHasPermission("Login","Login","2FA"); // True
Clone this wiki locally