fix: check enrollment on course certification page

This commit is contained in:
Jannat Patel
2025-03-12 10:49:44 +05:30
parent d5814f5680
commit 02edefc158
3 changed files with 19 additions and 33 deletions

View File

@@ -283,7 +283,8 @@ const courseType = computed(() => {
]
if (user.data?.is_student) {
types.push({ label: __('Enrolled'), value: 'Enrolled' })
} else {
}
if (user.data?.is_moderator || user.data?.is_instructor) {
types.push({ label: __('Created'), value: 'Created' })
}
return types