Skip to content

UserPermissions ​

Type
Class
Namespace
craft\web\twig\variables
Inherits
craft\web\twig\variables\UserPermissions
Since
3.0.0
Deprecated in
in 3.0.0

User permission functions.

View source

Public Methods ​

MethodDescription
getAllPermissions()Returns all of the known permissions, sorted by category.
getGroupPermissionsByUserId()Returns all of the group permissions a given user has.

getAllPermissions() ​

Returns all of the known permissions, sorted by category.

View source

Returns ​

array

getGroupPermissionsByUserId() ​

Returns all of the group permissions a given user has.

View source

Arguments ​

Returns ​

array