mirror of
https://github.com/keycloak/keycloak.git
synced 2026-01-09 15:02:05 -03:30
Forward isMemberOf call to the next delegate if the group is not managed by the mapper instance
Closes #40680 Signed-off-by: Stefan Guilhen <sguilhen@redhat.com>
This commit is contained in:
parent
48886a3812
commit
b7d3c8eb8b
@ -767,7 +767,11 @@ public class GroupLDAPStorageMapper extends AbstractLDAPStorageMapper implements
|
||||
|
||||
@Override
|
||||
public boolean isMemberOf(GroupModel group) {
|
||||
return isGroupInGroupPath(realm, group) && RoleUtils.isDirectMember(getGroupsStream(),group);
|
||||
if (!isGroupInGroupPath(realm, group)) {
|
||||
// this mapper doesn't manage the group - delegate to the next mapper or the JPA store.
|
||||
return super.isMemberOf(group);
|
||||
}
|
||||
return RoleUtils.isDirectMember(getGroupsStream(),group);
|
||||
}
|
||||
|
||||
protected Stream<GroupModel> getLDAPGroupMappingsConverted() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user