Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Commit

Permalink
[CRUD] disable user change slices from dashboardmodelview (apache#5217)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grace Guo authored and timifasubaa committed Jul 25, 2018
1 parent 495d88d commit 15163b2
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -530,9 +530,9 @@ class DashboardModelView(SupersetModelView, DeleteMixin): # noqa
list_columns = ['dashboard_link', 'creator', 'modified']
order_columns = ['modified']
edit_columns = [
'dashboard_title', 'slug', 'slices', 'owners', 'position_json', 'css',
'dashboard_title', 'slug', 'owners', 'position_json', 'css',
'json_metadata']
show_columns = edit_columns + ['table_names']
show_columns = edit_columns + ['table_names', 'slices']
search_columns = ('dashboard_title', 'slug', 'owners')
add_columns = edit_columns
base_order = ('changed_on', 'desc')
Expand All @@ -555,10 +555,6 @@ class DashboardModelView(SupersetModelView, DeleteMixin): # noqa
'owners': _('Owners is a list of users who can alter the dashboard.'),
}
base_filters = [['slice', DashboardFilter, lambda: []]]
add_form_query_rel_fields = {
'slices': [['slices', SliceFilter, None]],
}
edit_form_query_rel_fields = add_form_query_rel_fields
label_columns = {
'dashboard_link': _('Dashboard'),
'dashboard_title': _('Title'),
Expand Down

0 comments on commit 15163b2

Please sign in to comment.