From 0b87ea6e9b41a1b61009c1feeff5c75624985e94 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Mon, 5 Oct 2015 17:43:58 -0700 Subject: [PATCH] Bugfix around specific datasource access permissions --- panoramix/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panoramix/views.py b/panoramix/views.py index 981fd05bcd88e..84d207752b150 100644 --- a/panoramix/views.py +++ b/panoramix/views.py @@ -255,7 +255,7 @@ def datasource(self, datasource_type, datasource_id): 'all_datasource_access', 'all_datasource_access') datasource_access = self.appbuilder.sm.has_access( 'datasource_access', datasource.perm) - if not all_datasource_access or not datasource_access: + if not (all_datasource_access or datasource_access): flash( "You don't seem to have access to this datasource", "danger")