Merge pull request #6068 from christianbeeznest/fixes-updates65

Internal: Hide disabled course tools in student view
pull/6036/head
christianbeeznest 7 months ago committed by GitHub
commit 59c97b1000
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 7
      assets/vue/views/course/CourseHome.vue

@ -423,6 +423,13 @@ onMounted(async () => {
const onStudentViewChanged = async () => {
isAllowedToEdit.value = await checkIsAllowedToEdit()
courseService.loadCTools(course.value.id, session.value?.id).then((cTools) => {
tools.value = cTools.map((element) => ({
...element,
isEnabled: element.resourceNode?.resourceLinks[0]?.visibility === 2,
}))
})
}
const allowEditToolVisibilityInSession = computed(() => {

Loading…
Cancel
Save