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 (opens new window)
# Public Methods
Method | Description |
---|---|
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 (opens new window)
Returns
# getGroupPermissionsByUserId()
Returns all of the group permissions a given user has.
View source (opens new window)
Arguments
$userId
(integer (opens new window))