mirror of
https://github.com/apache/superset.git
synced 2026-04-18 15:44:57 +00:00
refactor: upload data unification, less permissions and less endpoints (#31959)
This commit is contained in:
committed by
GitHub
parent
09c1987de4
commit
1b375b715c
@@ -1336,7 +1336,7 @@ class TestRolePermission(SupersetTestCase):
|
||||
self.assert_cannot_menu("Upload a CSV", perm_set)
|
||||
self.assert_cannot_menu("ReportSchedule", perm_set)
|
||||
self.assert_cannot_menu("Alerts & Report", perm_set)
|
||||
assert ("can_csv_upload", "Database") not in perm_set
|
||||
assert ("can_upload", "Database") not in perm_set
|
||||
|
||||
def assert_can_gamma(self, perm_set):
|
||||
self.assert_can_read("Dataset", perm_set)
|
||||
@@ -1365,7 +1365,7 @@ class TestRolePermission(SupersetTestCase):
|
||||
self.assert_can_all("CssTemplate", perm_set)
|
||||
self.assert_can_all("Dataset", perm_set)
|
||||
self.assert_can_read("Database", perm_set)
|
||||
assert ("can_csv_upload", "Database") in perm_set
|
||||
assert ("can_upload", "Database") in perm_set
|
||||
self.assert_can_menu("Manage", perm_set)
|
||||
self.assert_can_menu("Annotation Layers", perm_set)
|
||||
self.assert_can_menu("CSS Templates", perm_set)
|
||||
|
||||
Reference in New Issue
Block a user