rbac\PhpManager getDirectPermissionsByUser()

getDirectPermissionsByUser() protected method (available since version 2.0.7)

Returns all permissions that are directly assigned to user.

protected yii\rbac\Permission[] getDirectPermissionsByUser ( $userId )
$userId string|integer

The user ID (see yii\web\User::$id)

return yii\rbac\Permission[]

All direct permissions that the user has. The array is indexed by the permission names.

doc_Yii
2016-10-30 17:10:24
Comments
Leave a Comment

Please login to continue.