-
Notifications
You must be signed in to change notification settings - Fork 23
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
Respect config option for adding series ACL to new event #321
Respect config option for adding series ACL to new event #321
Conversation
The backend configuration file `org.opencastproject.organization-mh_default_org.cfg` has a config option called `admin.init.event.acl.with.series.acl`. It determines whether the ACL of a new event is initialized with the ACL of its series, and true per default. We were not respecting this config option at all. This PR changes that.
@Arnei, thanks for the hint. Please coud you explain me how I can test this patch respectively how can I build the opencast-admin-interface jar file by my self? I was not able to compile it with the build-release.sh script. There were some error messages. |
Did you maybe not run the script from the For quick testing, I basically do what is described in the "Quickstart" section of the project ReadMe. But instead of running the proxy server against |
@Arnei, thank you for your explanations. But it would be easiest for me to test your PR if I had a step-by-step guide on how to create a corresponding jar file for opencast-admin-interface to store it in our opencast test system (version 15.3). I was not able to run the proxy server against our test system. |
Now I am able to run the proxy server against our test system. The node.js & npm version on the local host was to old. ;-) |
Thanks for trying to test anyway, and sorry for not getting back to you on more detailed steps on how to test. As for the proxy server crashing on workflow selection, I cannot reproduce that even if I intentionally configure no workflows to be available. Might be worth a new bug report issue? |
With the correctly compiled jar file for the opencast-admin-ui-interface this patch works for us. Thanks @Arnei for your help. |
Previously we were combining existing roles with the series roles. But apparently the series roles should just overwrite all other roles. This changes it to that.
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.
Works in one direction, but not in the other for me:
When turning off the initialization with the series ACL in Opencast, the ACL tab still shows the roles of the series on event creation even after reloading the page. In that case, only the role of the current user should be shown.
This pull request has conflicts ☹ |
Sorry @mwuttke, but I am unable to reproduce your problem without a Moodle instance of my own. If I create an event in the admin UI, |
@KatrinIhler , I am also unable to reproduce your problem. After turning off initialization with series ACL, only the role of the current users is shown to me, so for me it is working as you expected. |
Tried to test this again but can't pick a series for a new event (or edit any other metadata field after the title). u_u I'm using Firefox, neither the proxy nor the static data works. In the console I have
which may or may not be related? |
That was caused by another PR, should be fixed now. |
By which PR this issue is fixed? |
I thiiiink this one #309. To be clear, I was specifically referring to the issue Katrin was having. |
I know. Is there anything I can test right now? |
Probably not. I have done nothing to fix the issue with Moodle you mentioned, so I don't think that is fixed. |
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.
Works now, don't know what my earlier problem was. Can't speak to whether this fixes Michael's problem, though.
The backend configuration file
org.opencastproject.organization-mh_default_org.cfg
has a config option calledadmin.init.event.acl.with.series.acl
. It determines whether the ACL of a new event is initialized with the ACL of its series, and true per default. We were not respecting this config option at all. This PR changes that.