Skip to content

Commit 26e9e8f

Browse files
authored
Merge pull request #514 from vrk-kpa/fix_error_in_harvesting
Fix error in harvesting, helper check_access assumes user exist, toolkit check_access requires context
2 parents 86fbd87 + ff9a9ae commit 26e9e8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ckanext/ckanext-apicatalog/ckanext/apicatalog/validators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ def ignore_not_package_maintainer(key, data, errors, context):
180180
if 'package' not in context:
181181
return
182182

183-
if toolkit.h.check_access('package_update', {'id': context['package'].id}):
183+
if toolkit.check_access('package_update', context, {'id': context['package'].id}):
184184
data.pop(key)
185185

186186

0 commit comments

Comments
 (0)