mirror of
https://github.com/apache/superset.git
synced 2026-04-24 18:44:53 +00:00
feat(datasets): security perm simplification (#12000)
* feat(datasets): security perm simplification * feat(datasets): security perm simplification * fix tests * fix tests * fix tests * fix tests * fix tests * include SqlMetricInlineView converge and fix JS tests * update to current alembic revision
This commit is contained in:
committed by
GitHub
parent
9c8b65d03f
commit
2302adb61a
@@ -120,9 +120,7 @@ class SupersetSecurityManager( # pylint: disable=too-many-public-methods
|
||||
}
|
||||
|
||||
GAMMA_READ_ONLY_MODEL_VIEWS = {
|
||||
"SqlMetricInlineView",
|
||||
"TableColumnInlineView",
|
||||
"TableModelView",
|
||||
"Dataset",
|
||||
"DruidColumnInlineView",
|
||||
"DruidDatasourceModelView",
|
||||
"DruidMetricInlineView",
|
||||
@@ -160,7 +158,13 @@ class SupersetSecurityManager( # pylint: disable=too-many-public-methods
|
||||
"all_query_access",
|
||||
}
|
||||
|
||||
READ_ONLY_PERMISSION = {"can_show", "can_list", "can_get", "can_external_metadata"}
|
||||
READ_ONLY_PERMISSION = {
|
||||
"can_show",
|
||||
"can_list",
|
||||
"can_get",
|
||||
"can_external_metadata",
|
||||
"can_read",
|
||||
}
|
||||
|
||||
ALPHA_ONLY_PERMISSIONS = {
|
||||
"muldelete",
|
||||
|
||||
Reference in New Issue
Block a user