mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
Fix alpha permission checks. (#1641)
This commit is contained in:
parent
f64a205603
commit
dc25bc6f4d
@ -62,7 +62,7 @@ class BaseSupersetView(BaseView):
|
||||
def datasource_access(self, datasource):
|
||||
return (
|
||||
self.database_access(datasource.database) or
|
||||
self.can_access("all_database_access", "all_database_access") or
|
||||
self.all_datasource_access() or
|
||||
self.can_access("datasource_access", datasource.perm)
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user