Skip to content

Commit

Permalink
[#729] Slight code refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Jun 19, 2013
1 parent 10e6c7f commit 190951a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ckan/logic/auth/create.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ def package_create(context, data_dict=None):

if not check1:
return {'success': False, 'msg': _('User %s not authorized to create packages') % user}
else:

check2 = _check_group_auth(context,data_dict)
if not check2:
return {'success': False, 'msg': _('User %s not authorized to edit these groups') % str(user)}
check2 = _check_group_auth(context,data_dict)
if not check2:
return {'success': False, 'msg': _('User %s not authorized to edit these groups') % user}

return {'success': True}


def file_upload(context, data_dict=None):
user = context['user']
if not new_authz.auth_is_registered_user():
Expand Down

0 comments on commit 190951a

Please sign in to comment.