@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.
@@ -629,6 +629,12 @@ var SysOrganization = ObjectSchema.create({
629
629
  target: "/api/v1/auth/organization/create",
630
630
  successMessage: "Organization created",
631
631
  refreshAfter: true,
632
+ // Hidden when the deployment is provisioned in single-org mode
633
+ // (`OS_MULTI_ORG_ENABLED=false`). `features.multiOrgEnabled` is
634
+ // populated by the console/account shells from `/auth/config`;
635
+ // we default to visible when the flag is undefined so we don't
636
+ // accidentally hide the button while auth config is still loading.
637
+ visible: "features.multiOrgEnabled != false",
632
638
  params: [
633
639
  { field: "name", required: true },
634
640
  { field: "slug", required: true },