diff --git a/src/commands/edit.command.ts b/src/commands/edit.command.ts index 35e4b9ecd6..45784f2616 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 {