mirror of
https://github.com/apache/superset.git
synced 2026-04-19 08:04:53 +00:00
feat(logs): security permissions simplification (#12061)
* Added migration for logs security converge * Changed class permission name and method permission in LogModelView and LogRestApi * Updated recent revision and filename * Changed name of Log perm in manager. Updated TestRolePermission to have correct menu and permission. * Updated latest migration revision * Updated latest migration revision
This commit is contained in:
@@ -728,13 +728,11 @@ class TestRolePermission(SupersetTestCase):
|
||||
)
|
||||
)
|
||||
|
||||
log_permissions = ["can_list", "can_show"]
|
||||
log_permissions = ["can_read"]
|
||||
for log_permission in log_permissions:
|
||||
self.assertTrue(
|
||||
security_manager._is_admin_only(
|
||||
security_manager.find_permission_view_menu(
|
||||
log_permission, "LogModelView"
|
||||
)
|
||||
security_manager.find_permission_view_menu(log_permission, "Log")
|
||||
)
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user