-
Notifications
You must be signed in to change notification settings - Fork 4
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
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rekt-hard
commented
Jul 17, 2024
{% 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, |
There was a problem hiding this comment.
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
force-pushed
the
request-permission-policy
branch
3 times, most recently
from
July 17, 2024 10:55
533ed0d
to
082c4a7
Compare
rekt-hard
force-pushed
the
request-permission-policy
branch
from
July 17, 2024 11:12
082c4a7
to
5ce2e96
Compare
rekt-hard
force-pushed
the
request-permission-policy
branch
2 times, most recently
from
July 23, 2024 14:30
1372017
to
484114a
Compare
rekt-hard
force-pushed
the
request-permission-policy
branch
2 times, most recently
from
July 25, 2024 06:12
33b5fbc
to
9263010
Compare
rekt-hard
force-pushed
the
request-permission-policy
branch
from
July 25, 2024 06:56
9263010
to
f0590eb
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.