UserPermissions

Type
Class
Namespace
craft\web\twig\variables
Inherits
craft\web\twig\variables\UserPermissions
Since
3.0
Deprecated in
in 3.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

Signature

public array getAllPermissions ( )

getGroupPermissionsByUserId()

Returns all of the group permissions a given user has.

View source

Arguments

Returns

array

Signature

public array getGroupPermissionsByUserId ( \craft\web\twig\variables\int $userId )