mirror of
https://github.com/hcengineering/platform.git
synced 2026-08-17 18:05:42 +02:00
Allow to answer questions in training for guests (#10746)
Signed-off-by: Artem Savchenko <armisav@gmail.com>
This commit is contained in:
@@ -19,7 +19,7 @@ import type {
|
||||
SingleChoiceQuestion,
|
||||
SingleChoiceQuestionAnswer
|
||||
} from '@hcengineering/questions'
|
||||
import { type Class, type MixinData, type Ref } from '@hcengineering/core'
|
||||
import { AccountRole, type Class, type MixinData, type Ref } from '@hcengineering/core'
|
||||
import { type Builder } from '@hcengineering/model'
|
||||
import core from '@hcengineering/model-core'
|
||||
import tracker from '@hcengineering/model-tracker'
|
||||
@@ -73,6 +73,10 @@ export function createModel (builder: Builder): void {
|
||||
builder.createModel(TQuestion, TAssessment, TAnswer)
|
||||
builder.createModel(TQuestionMixin)
|
||||
|
||||
builder.mixin(questions.class.Answer, core.class.Class, core.mixin.TxAccessLevel, {
|
||||
createAccessLevel: AccountRole.Guest
|
||||
})
|
||||
|
||||
defineActions(builder)
|
||||
defineSingleChoice(builder)
|
||||
defineMultipleChoice(builder)
|
||||
|
||||
Reference in New Issue
Block a user