[ckan-changes] commit/ckanext-spatial: amercader: [wms_preview] Remove sysadmin check for WMS preview
Bitbucket
commits-noreply at bitbucket.org
Fri Sep 30 13:38:22 UTC 2011
1 new changeset in ckanext-spatial:
http://bitbucket.org/okfn/ckanext-spatial/changeset/603350a11656/
changeset: 603350a11656
branch: feature-1272-store-extents-from-form
user: amercader
date: 2011-09-30 15:38:11
summary: [wms_preview] Remove sysadmin check for WMS preview
affected #: 1 file (-1 bytes)
--- a/ckanext/spatial/controllers/view.py Fri Sep 30 12:15:53 2011 +0100
+++ b/ckanext/spatial/controllers/view.py Fri Sep 30 14:38:11 2011 +0100
@@ -10,14 +10,6 @@
class ViewController(BaseController):
- def __before__(self, action, **env):
- super(ViewController, self).__before__(action, **env)
- # All calls to this controller must be with a sysadmin key
- if not self.authorizer.is_sysadmin(c.user):
- response_msg = _('Not authorized to see this page')
- status = 401
- abort(status, response_msg)
-
def wms_preview(self,id):
#check if package exists
c.pkg = Package.get(id)
Repository URL: https://bitbucket.org/okfn/ckanext-spatial/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the ckan-changes
mailing list