rbac\ManagerInterface revoke()

revoke() public abstract method

Revokes a role from a user.

public abstract boolean revoke ( $role, $userId )
$role yii\rbac\Role
$userId string|integer

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

return boolean

Whether the revoking is successful

doc_Yii
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.