revoke() public method
Revokes a role from a user.
public 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 |
revoke() public method
Revokes a role from a user.
public 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.