Skip to content

Commit

Permalink
Imports of helper functions
Browse files Browse the repository at this point in the history
  • Loading branch information
rossjones committed Jan 20, 2012
1 parent 4f0c86e commit bacd0b8
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
1 change: 0 additions & 1 deletion ckan/logic/auth/create.py
Expand Up @@ -6,7 +6,6 @@
def package_create(context, data_dict=None):
model = context['model']
user = context['user']

check1 = check_access_old(model.System(), model.Action.PACKAGE_CREATE, context)

if not check1:
Expand Down
4 changes: 3 additions & 1 deletion ckan/logic/auth/publisher/create.py
@@ -1,5 +1,7 @@
# Updated: False

from ckan.logic.auth import get_package_object, get_group_object, get_authorization_group_object, \
get_user_object, get_resource_object
from ckan.logic import check_access_old, NotFound
from ckan.authz import Authorizer
from ckan.lib.base import _
Expand All @@ -8,7 +10,7 @@
def package_create(context, data_dict=None):
model = context['model']
user = context['user']

check1 = check_access_old(model.System(), model.Action.PACKAGE_CREATE, context)

if not check1:
Expand Down
3 changes: 2 additions & 1 deletion ckan/logic/auth/publisher/delete.py
@@ -1,5 +1,6 @@
# Updated: False

from ckan.logic.auth import get_package_object, get_group_object, get_authorization_group_object, \
get_user_object, get_resource_object
from ckan.logic import check_access_old
from ckan.logic.auth import get_package_object, get_group_object
from ckan.logic.auth.create import package_relationship_create
Expand Down
3 changes: 2 additions & 1 deletion ckan/logic/auth/publisher/get.py
@@ -1,5 +1,6 @@
# Updated: False

from ckan.logic.auth import get_package_object, get_group_object, get_authorization_group_object, \
get_user_object, get_resource_object
from ckan.logic import check_access_old, NotFound
from ckan.authz import Authorizer
from ckan.lib.base import _
Expand Down

0 comments on commit bacd0b8

Please sign in to comment.