@objectstack/platform-objects 6.7.1 → 6.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -631,6 +631,12 @@ var SysOrganization = data.ObjectSchema.create({
631
631
  target: "/api/v1/auth/organization/create",
632
632
  successMessage: "Organization created",
633
633
  refreshAfter: true,
634
+ // Hidden when the deployment is provisioned in single-org mode
635
+ // (`OS_MULTI_ORG_ENABLED=false`). `features.multiOrgEnabled` is
636
+ // populated by the console/account shells from `/auth/config`;
637
+ // we default to visible when the flag is undefined so we don't
638
+ // accidentally hide the button while auth config is still loading.
639
+ visible: "features.multiOrgEnabled != false",
634
640
  params: [
635
641
  { field: "name", required: true },
636
642
  { field: "slug", required: true },