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

Don't duplicate user roles when switching ACL templates in old Admin UI #5553

Conversation

KatrinIhler
Copy link
Member

When switching templates in the ACL view of the old Admin UI of new events, series or ACL templates, the user roles are accidentally pushed twice. This is not visible in the UI, except if you have custom actions, which will result in them seeming to mysteriously multiply each time you select a different template:

grafik

This was initially broken by #5269.

@KatrinIhler KatrinIhler added bug javascript Pull requests that update Javascript code labels Jan 24, 2024
@KatrinIhler KatrinIhler changed the title Don't duplicate user roles when switching templates Don't duplicate user roles when switching ACL templates in old Admin UI Jan 24, 2024
@KatrinIhler KatrinIhler changed the base branch from develop to r/14.x January 26, 2024 08:45
@Arnei
Copy link
Member

Arnei commented Jan 26, 2024

Unable to reproduce this. UI looks fine, POST request too.

@KatrinIhler
Copy link
Member Author

Unable to reproduce this. UI looks fine, POST request too.

Needs some more config to reproduce, details in private message. Sorry!

@Arnei
Copy link
Member

Arnei commented Jan 26, 2024

Managed to reproduce the issue, unfortunately this PR did not fix it for me.

@Arnei
Copy link
Member

Arnei commented Jan 26, 2024

(For anyone curious, the additional config Katrin mentioned is:

  • Does not happen with Admin or System user, gotta create your own.
  • In etc/listproviders/acl.default.create.properties, comment in keep_on_template_switch_role_prefixes=ROLE_USER_
  • The user needs a custom action
    )

Copy link
Member

@Arnei Arnei left a comment

Choose a reason for hiding this comment

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

After having explained to me that I tested the wrong setup, I can confirm that this indeed fixes the issue.

@KatrinIhler
Copy link
Member Author

Approved and discussed -> merging

@KatrinIhler KatrinIhler merged commit a10ea5b into opencast:r/14.x Jan 31, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug javascript Pull requests that update Javascript code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants