Skip to content

Commit

Permalink
[#2939] Auth functions succeed if ignore_auth context option provided
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 3, 2012
1 parent 41db0fa commit 1e409b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ckan/new_authz.py
Expand Up @@ -14,6 +14,8 @@ class AuthFunctions:
_functions = {}

def is_authorized(action, context,data_dict=None):
if context.get('ignore_auth'):
return {'success': True}

# sysadmins can do anything
user = context.get('user')
Expand Down

0 comments on commit 1e409b6

Please sign in to comment.