diff --git a/modules/ckanext-ytp-main/ckanext/ytp/dataset/helpers.py b/modules/ckanext-ytp-main/ckanext/ytp/dataset/helpers.py index 64f4fc80cd..819bca98aa 100644 --- a/modules/ckanext-ytp-main/ckanext/ytp/dataset/helpers.py +++ b/modules/ckanext-ytp-main/ckanext/ytp/dataset/helpers.py @@ -1,8 +1,5 @@ from pylons import config import json -import ckan.model as model -from ckan.logic import get_action -import ckan.logic as logic from ckan.common import c, request from ckan.logic import get_action diff --git a/modules/ckanext-ytp-main/ckanext/ytp/user/controller.py b/modules/ckanext-ytp-main/ckanext/ytp/user/controller.py index 7e42b45a1f..b6d1aa2170 100644 --- a/modules/ckanext-ytp-main/ckanext/ytp/user/controller.py +++ b/modules/ckanext-ytp-main/ckanext/ytp/user/controller.py @@ -57,8 +57,7 @@ def edit(self, id=None, data=None, errors=None, error_summary=None): user_obj = context.get('user_obj') - if not (new_authz.is_sysadmin(c.user) - or c.user == user_obj.name): + if not (new_authz.is_sysadmin(c.user) or c.user == user_obj.name): abort(401, _('User %s not authorized to edit %s') % (str(c.user), id))