Skip to content

Commit

Permalink
Speeding up polling by not checking access (#2466)
Browse files Browse the repository at this point in the history
* Speeding up polling by not checking access

* Fix tests
  • Loading branch information
mistercrunch authored Mar 24, 2017
1 parent 22522fc commit 1590b8c
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2087,7 +2087,6 @@ def fetch_datasource_metadata(self):
return json_error_response(DATASOURCE_ACCESS_ERR)
return json_success(json.dumps(datasource.data))

@has_access
@expose("/queries/<last_updated_ms>")
def queries(self, last_updated_ms):
"""Get the updated queries."""
Expand Down
1 change: 0 additions & 1 deletion tests/security_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def assert_can_gamma(self, perm_set):
self.assertIn(('can_slice', 'Superset'), perm_set)
self.assertIn(('can_explore', 'Superset'), perm_set)
self.assertIn(('can_explore_json', 'Superset'), perm_set)
self.assertIn(('can_queries', 'Superset'), perm_set)

def assert_can_alpha(self, perm_set):
self.assert_can_all('SqlMetricInlineView', perm_set)
Expand Down

0 comments on commit 1590b8c

Please sign in to comment.