Skip to content

Commit

Permalink
Merge pull request #89 from qlik-oss/tsm/QB-1634
Browse files Browse the repository at this point in the history
fix: correctly check data export privileges
  • Loading branch information
Caele authored Jun 9, 2020
2 parents 8f7465d + 32890ba commit 13c5b96
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 13c5b96

Please sign in to comment.