🐛 User is not able to delete or move files that was share with him (#392)

This commit is contained in:
Anton Shepilov
2024-02-29 10:43:39 +01:00
committed by GitHub
parent 4f372adddc
commit cb3dcb13ca
6 changed files with 38 additions and 38 deletions
@@ -366,5 +366,13 @@ export default class UserApi {
return deserialize<UserQuota>(UserQuotaMockClass, response.body);
}
async delete(id: string) {
return await this.platform.app.inject({
method: "DELETE",
url: `${UserApi.DOC_URL}/companies/${this.platform.workspace.company_id}/item/${id}`,
headers: { "authorization": `Bearer ${this.jwt}` },
});
}
}