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

user role mappings are removed when user is removed from group in AD/LDAP #2148

Merged
merged 2 commits into from Dec 14, 2022

Conversation

ssuvorov-fls
Copy link
Contributor

@ssuvorov-fls ssuvorov-fls commented Nov 2, 2022

fixes #1959

@@ -72,18 +70,18 @@ public RoleEntity addRole(String roleName, boolean isSystem) {
return role;
}

public String addUserToRole(String roleName, String login) {
public String addUserToRole(String roleName, String login, UserOrigin userOrigin) {
Guard.checkNotEmpty(roleName);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Let's practice backwards compatability: this is a public method which we are changing the functional signature. Let's keep the existing addUserToRole(String roleName, String login) intact, but change the implementation to call the new form with a default value:

public String addUserToRole(String roleName, String login) { 
  return this.adduserToRole(String roleName, String login, UserOrigin.SYSTEM);
}

Copy link
Contributor Author

Choose a reason for hiding this comment

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

you're right
done

@chrisknoll chrisknoll merged commit 916298f into master Dec 14, 2022
@delete-merged-branch delete-merged-branch bot deleted the feature/issue-2146-remove-role-mapping branch December 14, 2022 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

User import jobs not revoking access
2 participants