From 32890ba3db88185ed14c49800d2b36a3b237a0b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20=C3=85str=C3=B6m?= Date: Mon, 8 Jun 2020 09:27:36 +0200 Subject: [PATCH] fix: correctly check data export privileges --- src/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 67a5a03..36a8a53 100644 --- a/src/index.js +++ b/src/index.js @@ -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',