Skip to content

Commit

Permalink
Add has_access to import_dashboard (apache#4001)
Browse files Browse the repository at this point in the history
* Add has_access to import_dashboard

* Update core.py

* Update core.py
  • Loading branch information
timifasubaa authored and michellethomas committed May 23, 2018
1 parent 7e627bb commit 3d0fca6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/views/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -1090,8 +1090,9 @@ def explore_json(self, datasource_type, datasource_id):

return json_success(viz_obj.json_dumps(payload), status=status)

@expose('/import_dashboards', methods=['GET', 'POST'])
@log_this
@has_access
@expose('/import_dashboards', methods=['GET', 'POST'])
def import_dashboards(self):
"""Overrides the dashboards using pickled instances from the file."""
f = request.files.get('file')
Expand Down

0 comments on commit 3d0fca6

Please sign in to comment.