Skip to content

Commit

Permalink
Check configurations for organization access control
Browse files Browse the repository at this point in the history
Check whether organization access control enabled to show organization based subscription policies
  • Loading branch information
SavinduDimal committed Feb 7, 2025
1 parent c41e777 commit ac8fc1a
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,12 @@ function Subscriptions(props) {
.then((result) => {
setSubscriptions(result.body.count);
});
restApi.organizations()
.then((result) => {
setOrganizations(result.body.list);
})
if (settings && settings.orgAccessControlEnabled ) {
restApi.organizations()
.then((result) => {
setOrganizations(result.body.list);
})
}
setPolices([...api.policies]);
setOriginalPolicies([...api.policies]);
setOrganizationPolicies(api.organizationPolicies ? [...api.organizationPolicies] : []);
Expand Down

0 comments on commit ac8fc1a

Please sign in to comment.