From f77ab18c2fc6b831248ad78eb9e6f3af679927e2 Mon Sep 17 00:00:00 2001 From: Ron Lucke <lucke@elan-ev.de> Date: Wed, 26 Oct 2022 10:18:31 +0000 Subject: [PATCH] fix #1452 Closes #1452 Merge request studip/studip!1108 --- resources/vue/components/courseware/CoursewareTreeItem.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/vue/components/courseware/CoursewareTreeItem.vue b/resources/vue/components/courseware/CoursewareTreeItem.vue index b372b17cc4a..08e14538700 100755 --- a/resources/vue/components/courseware/CoursewareTreeItem.vue +++ b/resources/vue/components/courseware/CoursewareTreeItem.vue @@ -109,7 +109,7 @@ export default { if (Object.keys(writeApproval).length === 0) { return false; } - return writeApproval.all || writeApproval.groups.length > 0 || writeApproval.users.length > 0; + return (writeApproval.all || writeApproval.groups.length > 0 || writeApproval.users.length > 0) && this.element.attributes['can-edit']; }, hasNoReadApproval() { const readApproval = this.element.attributes['read-approval']; -- GitLab