From a2fedcd386667797a62db67d2e7fdd497b3bd6eb Mon Sep 17 00:00:00 2001 From: anonymous <anonymous> Date: Mon, 17 Dec 2018 17:29:59 +0100 Subject: [PATCH] ODPSH-196: readd user page without editing --- ckanext/odsh/controller.py | 2 -- ckanext/odsh/plugin.py | 5 ----- ckanext/odsh/templates/user/read_base.html | 4 ++++ 3 files changed, 4 insertions(+), 7 deletions(-) create mode 100644 ckanext/odsh/templates/user/read_base.html diff --git a/ckanext/odsh/controller.py b/ckanext/odsh/controller.py index 84802d29..ba821838 100644 --- a/ckanext/odsh/controller.py +++ b/ckanext/odsh/controller.py @@ -32,8 +32,6 @@ class OdshUserController(UserController): return super(OdshUserController,self).dashboard_datasets(id) def read(self, id=None): - if not authz.is_sysadmin(c.user): - abort(404) return super(OdshUserController,self).read(id) def follow(self, id): diff --git a/ckanext/odsh/plugin.py b/ckanext/odsh/plugin.py index 93eed79c..8b06ddf4 100644 --- a/ckanext/odsh/plugin.py +++ b/ckanext/odsh/plugin.py @@ -328,9 +328,6 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm # There are no extras in the search params, so do nothing. return search_params - - print(search_params) - start_date = self.extend_search_convert_local_to_utc_timestamp(extras.get('ext_startdate')) end_date = self.extend_search_convert_local_to_utc_timestamp(extras.get('ext_enddate')) @@ -346,8 +343,6 @@ class OdshPlugin(plugins.SingletonPlugin, DefaultTranslation, DefaultDatasetForm fq = '{fq} (+extras_temporal_start:[{start_date} TO {end_date}] OR +extras_temporal_end:[{start_date} TO {end_date}])'.format(fq=fq, start_date=start_date, end_date=end_date) - print(fq) - #return modified facet queries search_params['fq'] = fq diff --git a/ckanext/odsh/templates/user/read_base.html b/ckanext/odsh/templates/user/read_base.html new file mode 100644 index 00000000..de01a484 --- /dev/null +++ b/ckanext/odsh/templates/user/read_base.html @@ -0,0 +1,4 @@ +{% ckan_extends %} + +{% block content_action %} +{% endblock %} -- GitLab