Skip to content

Commit

Permalink
[#1184] Remove auth_sysadmins_check decorator from package_create
Browse files Browse the repository at this point in the history
There is no reason why sysadmins should need to use the auth function.
  • Loading branch information
amercader committed Oct 28, 2013
1 parent ddc7872 commit 1586f38
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ckan/logic/auth/create.py
Expand Up @@ -4,10 +4,9 @@
from ckan.common import _


@logic.auth_sysadmins_check
def package_create(context, data_dict=None):
user = context['user']
if not new_authz.auth_is_registered_user():
if not new_authz.auth_is_registered_user() and not user:
check1 = new_authz.check_config_permission('anon_create_dataset')
else:
check1 = new_authz.check_config_permission('create_dataset_if_not_in_organization') \
Expand Down

0 comments on commit 1586f38

Please sign in to comment.