Allow guest users to upload attachments and use reactions (#10469)

Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
Artyom Savchenko
2026-02-02 11:29:12 +07:00
committed by GitHub
parent c86869f980
commit ba532a080e
2 changed files with 7 additions and 1 deletions
+2
View File
@@ -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
})
+5 -1
View File
@@ -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
})