Skip to content

Commit

Permalink
Update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
SujanSanjula96 committed Oct 2, 2024
1 parent b2f73d4 commit feb92f4
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,11 @@ private void addSharedApplicationsToOrganization(Organization organization)
p.getName()) && Boolean.parseBoolean(p.getValue()))) {
getOrgApplicationManager().shareApplication(parentOrgId, organization.getId(),
mainApplication, true);
// Check whether the application is shared with any child organization using `isAppShared` property.
boolean isAppShared = isAppShared(mainApplication);
if (!isAppShared) {
// Update the `isAppShared` property of the main application to true if it hasn't been shared
// previously.
updateApplicationWithIsAppSharedProperty(true, mainApplication);
}
}
Expand Down

0 comments on commit feb92f4

Please sign in to comment.