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 |
Please login to continue.