Skip to content

Commit

Permalink
Merge pull request wso2#5015 from wso2/revert-4860-system-apps-fix
Browse files Browse the repository at this point in the history
Revert "Allow to update system apps for set of scenarios"
  • Loading branch information
UdeshAthukorala authored Dec 10, 2023
2 parents 81b6521 + a50a8c2 commit 9852053
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-adults-wonder.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@wso2is/identity-apps-core": patch
---

Revert "Allow to update system apps for set of scenarios" fix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
}

Expand Down

0 comments on commit 9852053

Please sign in to comment.