From d71ec9f0596f32d2bcccb63a23ab63d2d28c5d75 Mon Sep 17 00:00:00 2001
From: Ron Lucke <lucke@elan-ev.de>
Date: Mon, 28 Mar 2022 09:31:26 +0000
Subject: [PATCH] fix #829

---
 resources/vue/components/courseware/IndexApp.vue | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/resources/vue/components/courseware/IndexApp.vue b/resources/vue/components/courseware/IndexApp.vue
index d22f959116b..f70e601bccc 100755
--- a/resources/vue/components/courseware/IndexApp.vue
+++ b/resources/vue/components/courseware/IndexApp.vue
@@ -117,7 +117,9 @@ export default {
             this.structureLoadingState = 'error';
             return;
         }
-        await this.loadTeacherStatus(this.userId);
+        if (this.context.type === 'courses') {
+            await this.loadTeacherStatus(this.userId);
+        }
         this.structureLoadingState = 'done';
         const selectedId = this.$route.params?.id;
         await this.selectStructuralElement(selectedId);
-- 
GitLab