mirror of
https://github.com/filecoin-project/slate.git
synced 2024-11-22 21:45:56 +03:00
added forgotten check for remove file from slate
This commit is contained in:
parent
c28b532179
commit
c6cd40a679
@ -36,6 +36,12 @@ export default async (req, res) => {
|
||||
});
|
||||
}
|
||||
|
||||
if (slate.ownerId !== id) {
|
||||
return res
|
||||
.status(403)
|
||||
.send({ decorator: "SERVER_REMOVE_FROM_SLATE_SLATE_NOT_FOUND", error: true });
|
||||
}
|
||||
|
||||
let response = await Data.deleteSlateFiles({ slateId: slate.id, ids: fileIds });
|
||||
|
||||
if (!response || response.error) {
|
||||
|
Loading…
Reference in New Issue
Block a user