Skip to content

Commit

Permalink
[#2939] Add new sysadmin pseudo access check
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 3, 2012
1 parent ac8e9d8 commit 6cb7c1d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ckan/logic/auth/get.py
Expand Up @@ -6,6 +6,11 @@
get_resource_object, get_related_object)


def sysadmin(context, data_dict):
''' This is a pseudo check if we are a sysadmin all checks are true '''
return {'success': False, 'msg': _('Not authorized')}


def site_read(context, data_dict):
"""\
This function should be deprecated. It is only here because we couldn't
Expand Down

0 comments on commit 6cb7c1d

Please sign in to comment.