Skip to content

Commit

Permalink
fix: correctly check data export privileges
Browse files Browse the repository at this point in the history
  • Loading branch information
Caele authored Jun 8, 2020
1 parent 8f7465d commit 32890ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ export default {
return menu;
}

if (typeof (this.backendApi.model.layout.qMeta.privileges[3]) !== 'undefined' && this.backendApi.model.layout.qMeta.privileges[3] === 'exportdata') {
if (this.backendApi.model.layout.qMeta.privileges.indexOf('exportdata') !== -1) {
menu.addItem({
translation: 'Export as XLS',
tid: 'export-excel',
Expand Down

0 comments on commit 32890ba

Please sign in to comment.