diff --git a/superset/security.py b/superset/security.py index 2b032d20e70e7ebaee19be801b994201a495ac75..8e5915142d8cc1727878b2bab7b23cbd26f3e34d 100644 --- a/superset/security.py +++ b/superset/security.py @@ -34,7 +34,7 @@ ADMIN_ONLY_VIEW_MENUES = { 'RoleModelView', 'Security', 'UserDBModelView', -} | READ_ONLY_MODELVIEWS +} ADMIN_ONLY_PERMISSIONS = { 'all_database_access', diff --git a/tests/security_tests.py b/tests/security_tests.py index 989d3517cba36e18b284a68a8ebe643e461756da..143f741f2f3c229be4cc7337735ff40e18986c43 100644 --- a/tests/security_tests.py +++ b/tests/security_tests.py @@ -41,6 +41,7 @@ class RolePermissionTests(SupersetTestCase): self.assert_cannot_write('DruidColumnInlineView', perm_set) def assert_can_gamma(self, perm_set): + self.assert_can_read('DatabaseAsync', perm_set) self.assert_can_read('TableModelView', perm_set) # make sure that user can create slices and dashboards