getInheritedPermissionsByUser() protected method (available since version 2.0.7)
Returns all permissions that the user inherits from the roles assigned to him.
protected yii\rbac\Permission[] getInheritedPermissionsByUser ( $userId ) | ||
---|---|---|
$userId | string|integer |
The user ID (see yii\web\User::$id) |
return | yii\rbac\Permission[] |
All inherited permissions that the user has. The array is indexed by the permission names. |
Please login to continue.