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

Set accessing organization as the parent of the organizations which are created #509

Merged

Conversation

sadilchamishka
Copy link
Contributor

@sadilchamishka sadilchamishka commented Oct 19, 2023

Purpose

Describe the problems, issues, or needs driving this feature/fix and include links to related issues in the following format: Resolves issue1, issue2, etc.

AnuradhaSK
AnuradhaSK previously approved these changes Oct 19, 2023
dewniMW
dewniMW previously approved these changes Oct 20, 2023
Comment on lines -573 to -574
} else {
organization.getParent().setId(SUPER);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

The initial commit was to set the parent ID taken from the carbon context. But it is null as the organziationID is set to null when tenanted URL accesses.

Hence logic was changed to skip setting parent ID if not provided by treating it as an optional attribute. The accessing organization ID is set as the parent ID at the organization management service.

@sadilchamishka sadilchamishka merged commit be42441 into wso2:master Oct 21, 2023
4 checks passed
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.

3 participants