Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Captcha and create data request controls #90

Merged
merged 5 commits into from
Jul 11, 2023
Merged

Captcha and create data request controls #90

merged 5 commits into from
Jul 11, 2023

Conversation

duttonw
Copy link
Member

@duttonw duttonw commented Jul 10, 2023

No description provided.

ThrawnCA and others added 5 commits June 21, 2023 13:02
… users

- This is a stopgap measure against spam requests
[QOLSVC-2203] add the ability to restrict data requests to privileged users
QOLDEV-455 enable reCAPTCHA on datarequest comment and new data request forms
@duttonw duttonw requested a review from ThrawnCA July 10, 2023 21:39

from . import constants


def create_datarequest(context, data_dict):
return {'success': True}
return {
'success': asbool(config.get("ckanext.auth.create_datarequest_if_not_in_organization", "True"))
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ThrawnCA Leaving this in won't break anything right, would our cookbook need updates to allow datarequests again or was that on a 'fork'?

Copy link

@ThrawnCA ThrawnCA Jul 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It defaults to True when not provided, which matches the old behaviour, so there should be no problem. I believe the config change was only applied manually, not committed to the cookbook.

@duttonw duttonw merged commit 3cd82d7 into master Jul 11, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants