From 814320dcf380424cc3630e95af0f9528b8443b9c Mon Sep 17 00:00:00 2001 From: Artem Savchenko Date: Mon, 2 Feb 2026 09:41:48 +0700 Subject: [PATCH] Allow guest users to upload attachments and use reactions Signed-off-by: Artem Savchenko --- models/activity/src/index.ts | 2 ++ models/attachment/src/index.ts | 6 +++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/models/activity/src/index.ts b/models/activity/src/index.ts index 01c603b0c96..82b32c7fed9 100644 --- a/models/activity/src/index.ts +++ b/models/activity/src/index.ts @@ -279,6 +279,8 @@ export function createModel (builder: Builder): void { ) builder.mixin(activity.class.Reaction, core.class.Class, core.mixin.TxAccessLevel, { + createAccessLevel: AccountRole.Guest, + updateAccessLevel: AccountRole.Guest, removeAccessLevel: AccountRole.Guest }) diff --git a/models/attachment/src/index.ts b/models/attachment/src/index.ts index 8a0c8538938..f4adb00a120 100644 --- a/models/attachment/src/index.ts +++ b/models/attachment/src/index.ts @@ -22,7 +22,7 @@ import type { Photo, SavedAttachments } from '@hcengineering/attachment' -import { IndexKind, type Blob, type Class, type Doc, type Domain, type Ref } from '@hcengineering/core' +import { AccountRole, IndexKind, type Blob, type Class, type Doc, type Domain, type Ref } from '@hcengineering/core' import { Hidden, Index, @@ -124,6 +124,10 @@ export function createModel (builder: Builder): void { editor: attachment.component.Attachments }) + builder.mixin(attachment.class.Attachment, core.class.Class, core.mixin.TxAccessLevel, { + createAccessLevel: AccountRole.Guest + }) + builder.mixin(attachment.class.Photo, core.class.Class, view.mixin.CollectionEditor, { editor: attachment.component.Photos })