Skip to content

Commit

Permalink
[#2939] Auth update remove package_edit_permissions()
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 10, 2012
1 parent 728a76b commit a631436
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions ckan/logic/auth/update.py
Expand Up @@ -61,17 +61,6 @@ def package_change_state(context, data_dict):
else:
return {'success': True}

def package_edit_permissions(context, data_dict):
model = context['model']
user = context['user']
package = get_package_object(context, data_dict)

authorized = logic.check_access_old(package, model.Action.EDIT_PERMISSIONS, context)
if not authorized:
return {'success': False, 'msg': _('User %s not authorized to edit permissions of package %s') % (str(user),package.id)}
else:
return {'success': True}

def group_update(context, data_dict):
group = get_group_object(context, data_dict)
user = context['user']
Expand Down

0 comments on commit a631436

Please sign in to comment.