Skip to content

Commit

Permalink
Fixed syntax problem
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjones committed Jan 23, 2012
1 parent 69cba2d commit 0a1acef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ckan/logic/auth/publisher/update.py
Expand Up @@ -170,8 +170,8 @@ def user_update(context, data_dict):
return {'success': False, 'msg': _('User %s not authorized to edit user %s') % (str(user), user_obj.id)}

# Only allow package update if the user and package groups intersect or user is editing self
if (user != user_obj.name) and
not _groups_intersect( current_user.get_groups(), user_obj.get_groups() ):
if (user != user_obj.name) and \
not _groups_intersect( current_user.get_groups(), user_obj.get_groups() ):
return {'success': False, 'msg': _('User %s not authorized to edit user') % str(user)}

return {'success': True}
Expand Down

0 comments on commit 0a1acef

Please sign in to comment.