From 9c7e83361c174d1102b3d48d58bc336148e74a91 Mon Sep 17 00:00:00 2001 From: Udesh Athukorala Date: Fri, 8 Dec 2023 14:15:31 +0530 Subject: [PATCH 1/2] Revert "Allow to update system apps for set of scenarios" --- .../apps/common/listner/AppPortalOAuthAppMgtListener.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/identity-apps-core/components/org.wso2.identity.apps.common/src/main/java/org/wso2/identity/apps/common/listner/AppPortalOAuthAppMgtListener.java b/identity-apps-core/components/org.wso2.identity.apps.common/src/main/java/org/wso2/identity/apps/common/listner/AppPortalOAuthAppMgtListener.java index d9674b66c7e..6dcf9e25260 100644 --- a/identity-apps-core/components/org.wso2.identity.apps.common/src/main/java/org/wso2/identity/apps/common/listner/AppPortalOAuthAppMgtListener.java +++ b/identity-apps-core/components/org.wso2.identity.apps.common/src/main/java/org/wso2/identity/apps/common/listner/AppPortalOAuthAppMgtListener.java @@ -18,7 +18,6 @@ package org.wso2.identity.apps.common.listner; -import org.wso2.carbon.identity.application.common.util.IdentityApplicationManagementUtil; import org.wso2.carbon.identity.oauth.Error; import org.wso2.carbon.identity.oauth.IdentityOAuthAdminException; import org.wso2.carbon.identity.oauth.IdentityOAuthClientException; @@ -65,8 +64,7 @@ public void doPreUpdateConsumerApplication(OAuthConsumerAppDTO oAuthConsumerAppD throws IdentityOAuthAdminException { if (!isEnabled() || systemAppConsumerKeys.stream() - .noneMatch(oAuthConsumerAppDTO.getApplicationName()::equalsIgnoreCase) || - IdentityApplicationManagementUtil.getAllowUpdateSystemApplicationThreadLocal()) { + .noneMatch(oAuthConsumerAppDTO.getApplicationName()::equalsIgnoreCase)) { return; } From a50a8c2b1b2dca99b6ebf863e8970b66bbf3d194 Mon Sep 17 00:00:00 2001 From: UdeshAthukorala Date: Fri, 8 Dec 2023 14:39:34 +0530 Subject: [PATCH 2/2] =?UTF-8?q?Add=20changeset=20=F0=9F=A6=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .changeset/mighty-adults-wonder.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/mighty-adults-wonder.md diff --git a/.changeset/mighty-adults-wonder.md b/.changeset/mighty-adults-wonder.md new file mode 100644 index 00000000000..172cd72ade0 --- /dev/null +++ b/.changeset/mighty-adults-wonder.md @@ -0,0 +1,5 @@ +--- +"@wso2is/identity-apps-core": patch +--- + +Revert "Allow to update system apps for set of scenarios" fix