/** * federated share was revoked, either by the owner or the re-sharer * * @param $params * @return \OC_OCS_Result */ public function revoke($params) { $id = (int) $params['id']; $token = $this->request->getParam('token'); $share = $this->federatedShareProvider->getShareById($id); if ($this->verifyShare($share, $token)) { $this->federatedShareProvider->removeShareFromTable($share); return new \OC_OCS_Result(); } return new \OC_OCS_Result(null, Http::STATUS_BAD_REQUEST); }