superset-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From b...@apache.org
Subject [incubator-superset] branch master updated: fix sqllab querysearch typeahead permission error (#5906)
Date Fri, 21 Sep 2018 20:48:46 GMT
This is an automated email from the ASF dual-hosted git repository.

beto pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git


The following commit(s) were added to refs/heads/master by this push:
     new 4c62494  fix sqllab querysearch typeahead permission error (#5906)
4c62494 is described below

commit 4c62494dff30b0f31fe9c630a6f911acc44d7e86
Author: Junda Yang <youngyjd@gmail.com>
AuthorDate: Fri Sep 21 13:48:41 2018 -0700

    fix sqllab querysearch typeahead permission error (#5906)
---
 superset/security.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/superset/security.py b/superset/security.py
index 1f7b3e8..be8805b 100644
--- a/superset/security.py
+++ b/superset/security.py
@@ -379,7 +379,9 @@ class SupersetSecurityManager(SecurityManager):
             pvm.permission.name in {
                 'can_sql_json', 'can_csv', 'can_search_queries', 'can_sqllab_viz',
                 'can_sqllab',
-            })
+            } or
+            (pvm.view_menu.name == 'UserDBModelView' and
+             pvm.permission.name == 'can_list'))
 
     def is_granter_pvm(self, pvm):
         return pvm.permission.name in {


Mime
View raw message