parent
403632438a
commit
d76c295c09
1 changed files with 3 additions and 1 deletions
|
@ -20,6 +20,7 @@ import org.keycloak.models.ClientScopeModel;
|
||||||
import org.keycloak.models.GroupModel;
|
import org.keycloak.models.GroupModel;
|
||||||
import org.keycloak.models.KeycloakSession;
|
import org.keycloak.models.KeycloakSession;
|
||||||
import org.keycloak.models.RealmModel;
|
import org.keycloak.models.RealmModel;
|
||||||
|
import org.keycloak.models.RoleModel;
|
||||||
import org.keycloak.models.UserModel;
|
import org.keycloak.models.UserModel;
|
||||||
import org.keycloak.services.resources.admin.permissions.AdminPermissionEvaluator;
|
import org.keycloak.services.resources.admin.permissions.AdminPermissionEvaluator;
|
||||||
|
|
||||||
|
@ -164,7 +165,8 @@ public class EffectiveRoleMappingResource extends RoleMappingResource {
|
||||||
)}
|
)}
|
||||||
)
|
)
|
||||||
public final List<ClientRole> listCompositeRealmRoleMappings() {
|
public final List<ClientRole> listCompositeRealmRoleMappings() {
|
||||||
return mapping(o -> true).collect(Collectors.toList());
|
final RoleModel defaultRole = this.realm.getDefaultRole();
|
||||||
|
return mapping(o -> o.hasRole(defaultRole)).collect(Collectors.toList());
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue