From ac9cf91002835f028e40bc0382bb9176aa18f5f2 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Tue, 23 Oct 2018 19:04:32 -0400 Subject: [PATCH] org id check on edit collections --- src/commands/edit.command.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/commands/edit.command.ts b/src/commands/edit.command.ts index 35e4b9ecd62..45784f26161 100644 --- a/src/commands/edit.command.ts +++ b/src/commands/edit.command.ts @@ -73,6 +73,9 @@ export class EditCommand { if (cipher == null) { return Response.notFound(); } + if (cipher.organizationId == null) { + return Response.error('Item does not belong to an organization. Consider sharing it first.'); + } cipher.collectionIds = req; try {