-
Notifications
You must be signed in to change notification settings - Fork 33
Series and events permissions override enhancement #1295
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: develop
Are you sure you want to change the base?
Conversation
… optional modal button
Use Run test server using develop.opencast.org as backend:
Specify a different backend like stable.opencast.org:
It may take a few seconds for the interface to spin up. |
This pull request is deployed at test.admin-interface.opencast.org/1295/2025-05-19_11-59-08/ . |
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.
The configuration key admin.series.acl.event.update.mode
seems to be missing in the backend. At least I could not find it. If it should exist, could you add it?
@@ -28,6 +31,10 @@ const SeriesDetailsAccessTab = ({ | |||
const policies = useAppSelector(state => getSeriesDetailsAcl(state)); | |||
const policyTemplateId = useAppSelector(state => getPolicyTemplateId(state)); | |||
|
|||
const orgProperties = useAppSelector(state => getOrgProperties(state)); | |||
|
|||
const overrideEnabled = (orgProperties['admin.series.acl.event.update.mode'] || 'optional').toLowerCase() === 'optional'; |
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.
Aren't there supposed to be three modes, always
, never
and optional
? Can that really be represented with a boolean?
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.
You are right!
in this place to check and offer the button if it is optional is correct.
what is missing is to make sure that never & always are also in the play!
It is under |
Sorry for troubling you, but could you point out the line in the file? I'm really not seeing it in https://github.com/opencast/opencast/blob/r/17.x/etc/org.opencastproject.organization-mh_default_org.cfg |
No worries, it seems that it is missing in 17.x but it is there in 16.x! However, the documentation for 17.x says it is still effectively there: https://docs.opencast.org/r/17.x/admin/#configuration/acl/#updating-series-permissions [UPDATE]: @Arnei, I found the patch that removed the settings, it appears to me that this setting is removed considering it is related to old admin-ui which shouldn't! |
:D Then would you do Lars the favor of adding it back to 17.x, just like it was in 16.x? |
This pull request has conflicts ☹ |
This PR fixes #1290,
It introduces the optional offering of the button for the "overwrite of the events" when saving the series acl based on the config:
admin.series.acl.event.update.mode
as to beingoptional
or empty to offer both buttons!The button label and hint also got slightly more meaningful texts.
NOTE: At the time of creating this PR there is a commit/PR missing from
develop
(default) which makes the user and system perm separation, hence the permission dialogs are broken! So, please usestable.opencast.org
in order to test!