fix: show created tab to users with moderator or instructor role
This commit is contained in:
@@ -283,7 +283,7 @@ const courseType = computed(() => {
|
||||
]
|
||||
if (user.data?.is_student) {
|
||||
types.push({ label: __('Enrolled'), value: 'Enrolled' })
|
||||
}
|
||||
}
|
||||
if (user.data?.is_moderator || user.data?.is_instructor) {
|
||||
types.push({ label: __('Created'), value: 'Created' })
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user