fix: only users with moderator and instructor role should have access to quiz form

This commit is contained in:
Jannat Patel
2025-10-27 11:06:09 +05:30
parent 982ac98e27
commit 8749e21744
7 changed files with 498 additions and 1876 deletions

View File

@@ -126,7 +126,7 @@ import {
Button,
toast,
} from 'frappe-ui'
import { computed, watch, reactive, ref, inject } from 'vue'
import { watch, reactive, ref, inject } from 'vue'
import Link from '@/components/Controls/Link.vue'
import { useOnboarding } from 'frappe-ui/frappe'
@@ -141,6 +141,7 @@ const existingQuestion = reactive({
question: '',
marks: 1,
})
const question = reactive({
question: '',
type: 'Choices',