Skip to content

Commit

Permalink
[#2939] Sysadmins can change revision state in admin controller - rem…
Browse files Browse the repository at this point in the history
…oving Authorizer
  • Loading branch information
tobes committed Oct 9, 2012
1 parent bc3009e commit 92fcd77
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ckan/controllers/admin.py
Expand Up @@ -30,10 +30,7 @@ def __before__(self, action, **params):
'user': c.user}
if not ckan.new_authz.is_authorized('sysadmin', context, {})['success']:
base.abort(401, _('Need to be system administrator to administer'))
c.revision_change_state_allowed = (
c.user and self.authorizer.is_authorized(c.user,
model.Action.CHANGE_STATE,
model.Revision))
c.revision_change_state_allowed = True

def _get_config_form_items(self):
# Styles for use in the form.select() macro.
Expand Down

0 comments on commit 92fcd77

Please sign in to comment.