aboutsummaryrefslogtreecommitdiff
path: root/resources
diff options
context:
space:
mode:
authorElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2023-01-27 18:29:18 +0100
committerElmar Ludwig <elmar.ludwig@uni-osnabrueck.de>2023-01-27 18:29:18 +0100
commite88665b1b341b13d4ea3d880bda93f44026fe510 (patch)
tree489ad98ebeb8f2e273208902daa64527fe6c68a9 /resources
parent5aeec3662e2106e88a9188f25bef0022e4a02c5d (diff)
move inheritance of permissions to JSON-API controller, fixes #2094biest-2094
Diffstat (limited to 'resources')
-rw-r--r--resources/vue/components/courseware/CoursewareStructuralElement.vue6
1 files changed, 0 insertions, 6 deletions
diff --git a/resources/vue/components/courseware/CoursewareStructuralElement.vue b/resources/vue/components/courseware/CoursewareStructuralElement.vue
index af5331b..5332226 100644
--- a/resources/vue/components/courseware/CoursewareStructuralElement.vue
+++ b/resources/vue/components/courseware/CoursewareStructuralElement.vue
@@ -1518,8 +1518,6 @@ export default {
const title = this.newChapterName; // this is the title of the new element
const purpose = this.newChapterPurpose;
let parent_id = this.currentId; // new page is descandant as default
- let writeApproval = this.currentElement.attributes['write-approval'];
- let readApproval = this.currentElement.attributes['read-approval'];
this.errorEmptyChapterName = title.trim();
if (this.errorEmptyChapterName === '') {
@@ -1527,16 +1525,12 @@ export default {
}
if (this.newChapterParent === 'sibling') {
parent_id = this.structuralElement.relationships.parent.data.id;
- writeApproval = [];
- readApproval = [];
}
this.showElementAddDialog(false);
this.createStructuralElement({
attributes: {
title: title,
purpose: purpose,
- 'write-approval': writeApproval,
- 'read-approval': readApproval
},
templateId: this.newChapterTemplate ? this.newChapterTemplate.id : null,
parentId: parent_id,