mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-30 10:56:31 -05:00
fix(organization): infer endpoints when dynamic ac and teams enabled (#7359)
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user