getPermissionsByUser() public method
Returns all permissions that the user has.
public yii\rbac\Permission[] getPermissionsByUser ( $userId ) | ||
---|---|---|
$userId | string|integer |
The user ID (see yii\web\User::$id) |
return | yii\rbac\Permission[] |
All permissions that the user has. The array is indexed by the permission names. |
Please login to continue.