User permission functions.
See also http://craftcms.com
# Public Methods
|getAllPermissions()||Returns all of the known permissions, sorted by category.|
|getAssignablePermissions()||Returns the permissions that the current user is allowed to assign to another user.|
|getGroupPermissionsByUserId()||Returns all of the group permissions a given user has.|
Returns all of the known permissions, sorted by category.
public array getAllPermissions ( )
Returns the permissions that the current user is allowed to assign to another user.
$user(Craft\UserModel, null (opens new window)) – The recipient of the permissions. If set, their current permissions will be included as well.
public array getAssignablePermissions ( Craft\UserModel $user = null )