This is an automated email from the ASF dual-hosted git repository.
maximebeauchemin pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new 4404751 Add has_access to import_dashboard (#4001)
4404751 is described below
commit 4404751a1d90c7f3a913f4acfb78d3eaf1d8d197
Author: timifasubaa <[email protected]>
AuthorDate: Tue Dec 5 12:03:13 2017 -0800
Add has_access to import_dashboard (#4001)
* Add has_access to import_dashboard
* Update core.py
* Update core.py
---
superset/views/core.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/superset/views/core.py b/superset/views/core.py
index e221cb8..fc63391 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -1090,8 +1090,9 @@ class Superset(BaseSupersetView):
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')
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].