Skip to content

Commit

Permalink
[#2939] Remove am_authorized helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Oct 9, 2012
1 parent 6302ba1 commit 4252601
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions ckan/lib/helpers.py
Expand Up @@ -575,14 +575,6 @@ def sorted_extras(list_):
output.append((k, v))
return output

@deprecated('Please use check_access instead.')
def am_authorized(c, action, domain_object=None):
''' Deprecated. Please use check_access instead'''
from ckan.authz import Authorizer
if domain_object is None:
domain_object = model.System()
return Authorizer.am_authorized(c, action, domain_object)


def check_access(action, data_dict=None):
from ckan.logic import check_access as check_access_logic, NotAuthorized
Expand Down

0 comments on commit 4252601

Please sign in to comment.