Class craft\web\twig\variables\UserPermissions
- Inheritance
- craft\web\twig\variables\UserPermissions
- Available since version
- 3.0
- Deprecated since version
- in 3.0
- Source Code
- https://github.com/craftcms/cms/blob/master/src/web/twig/variables/UserPermissions.php
User permission functions.
Method | Description | Defined By |
---|---|---|
getAllPermissions() |
Returns all of the known permissions, sorted by category. | craft\web\twig\variables\UserPermissions |
getGroupPermissionsByUserId() |
Returns all of the group permissions a given user has. | craft\web\twig\variables\UserPermissions |
Method Details
getAllPermissions()
public method
#
Returns all of the known permissions, sorted by category.
public array getAllPermissions ( )
getGroupPermissionsByUserId()
public method
#
Returns all of the group permissions a given user has.
public array getGroupPermissionsByUserId ( \craft\web\twig\variables\int $userId )
$userId |
integer |