Skip to content

Commit

Permalink
Revert "Filter out unavailable databases (apache#3875)" (apache#3918)
Browse files Browse the repository at this point in the history
This reverts commit ae2205a.
  • Loading branch information
mistercrunch authored and Grace Guo committed Nov 21, 2017
1 parent d35b0ac commit 4657a2f
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down Expand Up @@ -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(
Expand Down

0 comments on commit 4657a2f

Please sign in to comment.