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

Adding a regexp to match with each user group in resource control #3023

Conversation

MiguelWeezardo
Copy link
Member

No description provided.

@cla-bot cla-bot bot added the cla-signed label Mar 6, 2020
@MiguelWeezardo MiguelWeezardo force-pushed the user_groups_in_resource_selectors branch from 820fe24 to 731ac3b Compare March 6, 2020 15:49
@MiguelWeezardo MiguelWeezardo requested a review from findepi March 6, 2020 15:50
@tooptoop4
Copy link
Contributor

does this fix #2919 ?

return new SelectorSpecBuilder(
new SelectorSpec(
spec.getUserRegex(),
Optional.of(Pattern.compile(String.join("|", groups.stream().map(Pattern::quote).collect(Collectors.toList())))),
Copy link
Member

Choose a reason for hiding this comment

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

groups.stream().map(Pattern::quote).collect(joining("|"))

@Override
public String toString()
{
return new StringJoiner(", ", SelectionCriteria.class.getSimpleName() + "[", "]")
Copy link
Member

Choose a reason for hiding this comment

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

Nice!

@MiguelWeezardo
Copy link
Member Author

does this fix #2919 ?

It should make this possible if ldap groups are actually assigned to a user.

@findepi
Copy link
Member

findepi commented Mar 9, 2020

Merged, thanks!

@findepi findepi closed this Mar 9, 2020
@findepi findepi added this to the 331 milestone Mar 9, 2020
@findepi findepi mentioned this pull request Mar 9, 2020
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

4 participants