Skip to content
Snippets Groups Projects
Commit f12ae512 authored by Ron Lucke's avatar Ron Lucke Committed by Elmar Ludwig
Browse files

fix #735

parent 9c565203
No related branches found
No related tags found
No related merge requests found
......@@ -53,12 +53,24 @@ export default {
return this.structuralElement.attributes['can-edit'];
},
showExportArchiv() {
if (this.context.type === 'users') {
return true;
}
return this.canEdit;
},
showExportPdf() {
if (this.context.type === 'users') {
return true;
}
return this.canVisit;
},
showOer() {
if (this.context.type === 'users') {
return true;
}
return this.oerEnabled && this.userIsTeacher && this.canVisit
}
},
......
......@@ -187,7 +187,7 @@ export default {
let children = [];
for (var i = 0; i < data.length; i++) {
if (data[i].relationships.parent.data?.id === parentId) {
if (data[i].relationships.parent.data?.id === parentId && data[i].attributes['can-edit']) {
let new_childs = await this.exportStructuralElement(data[i].id, data);
this.exportElementCounter++;
let content = { ...data[i] };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment