From 0a4bc02745e5165c6747a49cd05742914f3e03b0 Mon Sep 17 00:00:00 2001 From: sofyenne Date: Tue, 17 Feb 2026 12:29:56 +0100 Subject: [PATCH] fix: Space created by non admin results to not found page - MEED-10255 - Meeds-io/meeds#4053 --- .../services/organization/impl/MembershipUpdateListener.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exo.core.component.organization.api/src/main/java/org/exoplatform/services/organization/impl/MembershipUpdateListener.java b/exo.core.component.organization.api/src/main/java/org/exoplatform/services/organization/impl/MembershipUpdateListener.java index 70469400f..2d84105ad 100644 --- a/exo.core.component.organization.api/src/main/java/org/exoplatform/services/organization/impl/MembershipUpdateListener.java +++ b/exo.core.component.organization.api/src/main/java/org/exoplatform/services/organization/impl/MembershipUpdateListener.java @@ -23,6 +23,8 @@ import org.exoplatform.services.security.ConversationRegistry; import org.exoplatform.services.security.IdentityRegistry; +import static org.exoplatform.container.component.RequestLifeCycle.restartTransaction; + public class MembershipUpdateListener extends MembershipEventListener { private final ConversationRegistry conversationRegistry; @@ -47,6 +49,7 @@ public void postSave(Membership m, boolean isNew) throws Exception { private void refreshUserIdentity(String username) { conversationRegistry.unregisterByUserId(username); identityRegistry.unregister(username); + restartTransaction(); } }