[wms_preview] Remove sysadmin check for WMS preview

This commit is contained in:
Adrià Mercader 2011-09-30 14:38:11 +01:00
parent 1798f63a08
commit e5dbeb9ff8
1 changed files with 0 additions and 8 deletions

View File

@ -10,14 +10,6 @@ from ckan.model import Package
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)