Skip to content

Commit

Permalink
[#2939] Auth get site_read() changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 10, 2012
1 parent 07d4a46 commit e760721
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions ckan/logic/auth/get.py
Expand Up @@ -18,11 +18,8 @@ def site_read(context, data_dict):
./ckan/controllers/api.py
"""
model = context['model']
user = context.get('user')
if not Authorizer().is_authorized(user, model.Action.SITE_READ, model.System):
return {'success': False, 'msg': _('Not authorized to see this page')}

# FIXME we need to remove this for now we allow site read
return {'success': True}

def package_search(context, data_dict):
Expand Down

0 comments on commit e760721

Please sign in to comment.