Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow application creation in sub organization level #409

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ShanChathusanda93
Copy link
Contributor

Purpose

@ShanChathusanda93 ShanChathusanda93 force-pushed the org-level-app-creation-branch branch 2 times, most recently from 8661c32 to 89b3205 Compare November 1, 2024 10:51
pom.xml Outdated
<carbon.kernel.version>4.9.17</carbon.kernel.version>
<carbon.kernel.package.import.version.range>[4.7.0, 5.0.0)</carbon.kernel.package.import.version.range>
<carbon.kernel.feature.version>4.6.0</carbon.kernel.feature.version>
<carbon.kernel.version>4.10.24</carbon.kernel.version>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This version needs to be updated once a new kernel release is done with the changes wso2/carbon-kernel#4104

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated to the latest kernel release 4.10.26[1]

[1] https://github.com/wso2/carbon-kernel/tree/v4.10.26

Comment on lines 134 to 135
if (StringUtils.isEmpty(PrivilegedCarbonContext.getThreadLocalCarbonContext()
.getApplicationResidentOrganizationId())) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if (StringUtils.isEmpty(PrivilegedCarbonContext.getThreadLocalCarbonContext()
.getApplicationResidentOrganizationId())) {
if (StringUtils.isNotEmpty(PrivilegedCarbonContext.getThreadLocalCarbonContext()
.getApplicationResidentOrganizationId())) {
true;
}
// eralier logic

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ultimately, after enabling app creation within sub org through application mgt API as well, the only thing we need to restrict is inability to create shared/ framgent apps apart from the internal process

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated the logic

@ShanChathusanda93 ShanChathusanda93 force-pushed the org-level-app-creation-branch branch from 851a98f to df970df Compare December 9, 2024 13:18
@ShanChathusanda93 ShanChathusanda93 changed the title Improve sub org application creation when accessing through tenant perspective Allow application creation in sub organization level Dec 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants