Skip to content

Commit 4102764

Browse files
committed
Fix (xs): Check endpoint and allow download access for pending user account
1 parent 155ad23 commit 4102764

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ckanext/oauth2/plugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def _allowed_endpoint(endpoint):
171171
response.status_code = 302
172172
return response
173173
elif account_state == "pending":
174-
if toolkit.request.blueprint == "approval_dataset.download_resource":
174+
if toolkit.request.endpoint == "approval_dataset.download_resource":
175175
return response
176176
else:
177177
toolkit.h.flash_notice(

0 commit comments

Comments
 (0)