Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(permissions): alpha role has all full features #10241

Merged
merged 10 commits into from
Jul 27, 2020
9 changes: 7 additions & 2 deletions superset/security/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ class SupersetSecurityManager( # pylint: disable=too-many-public-methods

ADMIN_ONLY_VIEW_MENUS = {
"AccessRequestsModelView",
"Manage",
"SQL Lab",
"Queries",
"Refresh Druid Metadata",
Expand All @@ -139,7 +138,13 @@ class SupersetSecurityManager( # pylint: disable=too-many-public-methods
"RowLevelSecurityFiltersModelView",
} | USER_MODEL_VIEWS

ALPHA_ONLY_VIEW_MENUS = {"Upload a CSV"}
ALPHA_ONLY_VIEW_MENUS = {
dpgaspar marked this conversation as resolved.
Show resolved Hide resolved
"Manage",
"CSS Templates",
"Queries",
"Import dashboards",
"Upload a CSV",
}

ADMIN_ONLY_PERMISSIONS = {
"can_sql_json", # TODO: move can_sql_json to sql_lab role
Expand Down