We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 155ad23 commit 4102764Copy full SHA for 4102764
ckanext/oauth2/plugin.py
@@ -171,7 +171,7 @@ def _allowed_endpoint(endpoint):
171
response.status_code = 302
172
return response
173
elif account_state == "pending":
174
- if toolkit.request.blueprint == "approval_dataset.download_resource":
+ if toolkit.request.endpoint == "approval_dataset.download_resource":
175
176
else:
177
toolkit.h.flash_notice(
0 commit comments