public function revoke($role, $userId) {
		$userId = $this->getId($userId);
		$entity = \App::$domain->account->login->oneById($userId);
		$this->model->deleteAll(['user_id' => $userId, 'item_name' => $role]);
	}
public function revoke($role, $userId) {
		$userId = $this->getId($userId);
		$entity = \App::$domain->account->login->oneById($userId);
		$this->model->deleteAll(['user_id' => $userId, 'item_name' => $role]);
	}
public function revoke ( $ role , $ userId ) { $ userId = $ this -> getId ( $ userId ) ; $ entity = \ App :: $ domain -> account -> login -> oneById ( $ userId ) ; $ this -> model -> deleteAll ( [ 'user_id' => $ userId , 'item_name' => $ role ] ) ; }
Revokes a role from a user.

@param Role|Permission $role
@param string|int      $userId the user ID (see [[\yii\web\User::id]])

@return bool whether the revoking is successful
Revokes a role from a user .