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 { ...@@ -53,12 +53,24 @@ export default {
return this.structuralElement.attributes['can-edit']; return this.structuralElement.attributes['can-edit'];
}, },
showExportArchiv() { showExportArchiv() {
if (this.context.type === 'users') {
return true;
}
return this.canEdit; return this.canEdit;
}, },
showExportPdf() { showExportPdf() {
if (this.context.type === 'users') {
return true;
}
return this.canVisit; return this.canVisit;
}, },
showOer() { showOer() {
if (this.context.type === 'users') {
return true;
}
return this.oerEnabled && this.userIsTeacher && this.canVisit return this.oerEnabled && this.userIsTeacher && this.canVisit
} }
}, },
......
...@@ -187,7 +187,7 @@ export default { ...@@ -187,7 +187,7 @@ export default {
let children = []; let children = [];
for (var i = 0; i < data.length; i++) { 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); let new_childs = await this.exportStructuralElement(data[i].id, data);
this.exportElementCounter++; this.exportElementCounter++;
let content = { ...data[i] }; let content = { ...data[i] };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment