Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions models/activity/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
})

Expand Down
6 changes: 5 additions & 1 deletion models/attachment/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
})
Expand Down
Loading