fix(organization): infer endpoints when dynamic ac and teams enabled (#7359)

This commit is contained in:
Joél Solano
2026-01-14 19:44:27 +01:00
committed by Alex Yang
parent a043b121d0
commit 2e83f0a182

View File

@@ -303,6 +303,11 @@ export type OrganizationPlugin<O extends OrganizationOptions> = {
export function organization<
O extends OrganizationOptions & {
teams: { enabled: true };
dynamicAccessControl?:
| {
enabled?: false | undefined;
}
| undefined;
},
>(
options?: O | undefined,
@@ -366,6 +371,7 @@ export function organization<
export function organization<
O extends OrganizationOptions & {
dynamicAccessControl: { enabled: true };
teams?: { enabled?: false | undefined } | undefined;
},
>(
options?: O | undefined,