TwillPermissions
class TwillPermissions (View source)
Properties
string | $roleEnum |
Methods
bool
enabled()
No description
string
roles()
No description
void
setRoleEnum(string $roleEnum)
The role enumeration class. Must extend MyCLabs\Enum\Enum.
bool|string
getPermissionModule(string $moduleName)
Return the module name if the module has permissions, otherwise return false.
bool
levelIs(string $level)
No description
bool
levelIsOneOf(array $levels)
No description
void
showUserSecondaryNavigation()
No description
Details
bool
enabled()
No description
string
roles()
No description
void
setRoleEnum(string $roleEnum)
The role enumeration class. Must extend MyCLabs\Enum\Enum.
See A17\Twill\Models\Enums\UserRole for an example.
bool|string
getPermissionModule(string $moduleName)
Return the module name if the module has permissions, otherwise return false.
bool
levelIs(string $level)
No description
bool
levelIsOneOf(array $levels)
No description
void
showUserSecondaryNavigation()
No description