From 4657a2fdd0a20519b232e2437be7cff50d90a920 Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Tue, 21 Nov 2017 12:58:47 -0800 Subject: [PATCH] Revert "Filter out unavailable databases (#3875)" (#3918) This reverts commit ae2205aeb54f43b63e58aadfbb5dd749e1c98d98. --- superset/views/core.py | 9 --------- 1 file changed, 9 deletions(-) diff --git a/superset/views/core.py b/superset/views/core.py index af2396e33ff9e..18f6622c5ee7e 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -130,14 +130,6 @@ def apply(self, query, func): # noqa return query.filter(self.model.perm.in_(perms)) -class DatabaseFilter(SupersetFilter): - def apply(self, query, func): - if self.has_all_datasource_access(): - return query - perms = self.get_view_menus('database_access') - return query.filter(self.model.perm.in_(perms)) - - class DashboardFilter(SupersetFilter): """List dashboards for which users have access to at least one slice""" @@ -211,7 +203,6 @@ class DatabaseView(SupersetModelView, DeleteMixin): # noqa ] add_template = 'superset/models/database/add.html' edit_template = 'superset/models/database/edit.html' - base_filters = [['perm', DatabaseFilter, lambda:[]]] base_order = ('changed_on', 'desc') description_columns = { 'sqlalchemy_uri': utils.markdown(