-
Notifications
You must be signed in to change notification settings - Fork 13
clc: add clc sync message #483
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
base: master
Are you sure you want to change the base?
Conversation
jrcastro2
commented
May 16, 2025
•
edited
Loading
edited
d8576a4
to
3fc469d
Compare
invenio.cfg
Outdated
"cds_rdm/records/manage_menu.html" if template == "invenio_app_rdm/records/details/side_bar/manage_menu.html" else template | ||
for template in DEFAULT_SIDE_BAR_TEMPLATES |
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.
Is the if condition neede?
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.
Yes, because the idea is to replace the existing manage_menu.html
template only. The goal is to avoid overriding the entire template which we could do, but I simply want to add new data attributes.
0d508fb
to
179eed5
Compare
@@ -38,7 +37,7 @@ class CLCSyncPermissionPolicy(BasePermissionPolicy): | |||
"""Permission policy for CLCSync.""" | |||
|
|||
can_create = [CLCExporter(), Administration(), SystemProcess()] | |||
can_read = [CLCExporter(), Administration(), SystemProcess()] | |||
can_read = [CLCExporter(), Administration(), SystemProcess(), AnyUser()] |
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.
why does Any User need to read?
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.
We need to retrieve if the record is synced or not on each landing page, for any record, for any user, to be able to conditionally display the new banner. @jrcastro2 you can probably remove all the other permissions given the AnyUser
.
site/cds_rdm/templates/semantic-ui/cds_rdm/records/manage_menu.html
Outdated
Show resolved
Hide resolved
179eed5
to
5fe2067
Compare
5fe2067
to
4463b1a
Compare