diff --git a/superset-frontend/src/explore/components/PropertiesModal/index.tsx b/superset-frontend/src/explore/components/PropertiesModal/index.tsx index 0c46f6ba792f1..ab1e075a45cbb 100644 --- a/superset-frontend/src/explore/components/PropertiesModal/index.tsx +++ b/superset-frontend/src/explore/components/PropertiesModal/index.tsx @@ -175,7 +175,7 @@ export default function PropertiesModal({ buttonStyle="primary" // @ts-ignore onClick={onSubmit} - disabled={!owners || submitting || !name} + disabled={submitting || !name} cta > {t('Save')} diff --git a/superset/views/core.py b/superset/views/core.py index b46fa969a12da..854f3e819b8d8 100755 --- a/superset/views/core.py +++ b/superset/views/core.py @@ -122,6 +122,7 @@ get_error_msg, get_user_roles, handle_api_exception, + is_user_admin, json_error_response, json_errors_response, json_success, @@ -787,7 +788,9 @@ def explore( # pylint: disable=too-many-locals,too-many-return-statements,too-m # slc perms slice_add_perm = security_manager.can_access("can_write", "Chart") - slice_overwrite_perm = is_owner(slc, g.user) if slc else False + slice_overwrite_perm = ( + is_owner(slc, g.user) or is_user_admin() if slc else False + ) slice_download_perm = security_manager.can_access("can_csv", "Superset") form_data["datasource"] = str(datasource_id) + "__" + cast(str, datasource_type)