mirror of
https://github.com/hcengineering/platform.git
synced 2026-09-05 01:07:41 +02:00
Allow guest users to upload attachments and use reactions (#10469)
Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
@@ -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
|
||||
})
|
||||
|
||||
|
||||
@@ -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
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user