Skip to content

Commit

Permalink
rest of the flake8 fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Zharktas committed Feb 24, 2015
1 parent 2f517a6 commit 6b80dd3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
3 changes: 0 additions & 3 deletions modules/ckanext-ytp-main/ckanext/ytp/dataset/helpers.py
Original file line number Diff line number Diff line change
@@ -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

Expand Down
3 changes: 1 addition & 2 deletions modules/ckanext-ytp-main/ckanext/ytp/user/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 6b80dd3

Please sign in to comment.