Skip to content

Commit

Permalink
Add has_access to import_dashboard (#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 mistercrunch committed Dec 5, 2017
1 parent defe678 commit 4404751
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion superset/views/core.py
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 4404751

Please sign in to comment.