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

Add curation related generators #3

Merged
merged 6 commits into from
Jul 25, 2024
Merged

Conversation

rekt-hard
Copy link
Contributor

IfRequestTypes checks if a request is of a certain type.
IfCurationRequestAccepted will check if a curation request has been accepted for the given requests record.

These two generators allow to update the requests permission policy, such that a curation request has to be accepted before a community submission request can be accepted. This way, users will not see the Accept and Publish button for the community submission request unless they should actually be able to click it.

{% from "invenio_requests/macros/request_header.html" import inclusion_request_header %}
{{ inclusion_request_header(
request=invenio_request,
record=record,
accepted=request_is_accepted,
accepted=False,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Setting to False so the view record button is never shown.

@rekt-hard rekt-hard force-pushed the request-permission-policy branch 3 times, most recently from 533ed0d to 082c4a7 Compare July 17, 2024 10:55
README.rst Outdated Show resolved Hide resolved
@rekt-hard rekt-hard force-pushed the request-permission-policy branch from 082c4a7 to 5ce2e96 Compare July 17, 2024 11:12
@rekt-hard rekt-hard force-pushed the request-permission-policy branch 2 times, most recently from 1372017 to 484114a Compare July 23, 2024 14:30
@rekt-hard rekt-hard force-pushed the request-permission-policy branch 2 times, most recently from 33b5fbc to 9263010 Compare July 25, 2024 06:12
@rekt-hard rekt-hard force-pushed the request-permission-policy branch from 9263010 to f0590eb Compare July 25, 2024 06:56
@rekt-hard rekt-hard merged commit 70c5d75 into main Jul 25, 2024
2 checks passed
@rekt-hard rekt-hard deleted the request-permission-policy branch July 25, 2024 07:07
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