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

[QCDP24-31] removed close datarequest button #10

Merged
merged 2 commits into from
Sep 9, 2024

Conversation

awset
Copy link

@awset awset commented Sep 8, 2024

@awset awset self-assigned this Sep 8, 2024
@awset awset requested a review from MarkCalvert September 8, 2024 10:36
@@ -112,7 +112,8 @@ def delete_datarequest(context, data_dict):


def close_datarequest(context, data_dict):
return auth_if_creator(context, data_dict, constants.SHOW_DATAREQUEST)
# Close data request feature is removed in this project.

Choose a reason for hiding this comment

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

FYI CKAN does not check auth functions for sysadmin users and automatically returns true because they have access to everything.
Sysadmin users will be able to use the API to close a data request.
To prevent sysadmin users from being automatically authorised add the decorate auth_sysadmins_check

@MarkCalvert MarkCalvert merged commit 06d9ba8 into develop Sep 9, 2024
1 check 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.

2 participants