Fixes #3412 Previously the only way to restrict the domains for a Team were with the ALLOWED_DOMAINS environment variable for self hosted instances. This PR migrates this to be a database backed setting on the Team object. This is done through the creation of a TeamDomain model that is associated with the Team and contains the domain name This settings is updated on the Security Tab. Here domains can be added or removed from the Team. On the server side, we take the code paths that previously were using ALLOWED_DOMAINS and switched them to use the Team allowed domains instead
52 lines
1.4 KiB
TypeScript
52 lines
1.4 KiB
TypeScript
export { default as ApiKey } from "./ApiKey";
|
|
|
|
export { default as Attachment } from "./Attachment";
|
|
|
|
export { default as AuthenticationProvider } from "./AuthenticationProvider";
|
|
|
|
export { default as Backlink } from "./Backlink";
|
|
|
|
export { default as Collection } from "./Collection";
|
|
|
|
export { default as CollectionGroup } from "./CollectionGroup";
|
|
|
|
export { default as CollectionUser } from "./CollectionUser";
|
|
|
|
export { default as Document } from "./Document";
|
|
|
|
export { default as Event } from "./Event";
|
|
|
|
export { default as FileOperation } from "./FileOperation";
|
|
|
|
export { default as Group } from "./Group";
|
|
|
|
export { default as GroupUser } from "./GroupUser";
|
|
|
|
export { default as Integration } from "./Integration";
|
|
|
|
export { default as IntegrationAuthentication } from "./IntegrationAuthentication";
|
|
|
|
export { default as Notification } from "./Notification";
|
|
|
|
export { default as NotificationSetting } from "./NotificationSetting";
|
|
|
|
export { default as Pin } from "./Pin";
|
|
|
|
export { default as Revision } from "./Revision";
|
|
|
|
export { default as SearchQuery } from "./SearchQuery";
|
|
|
|
export { default as Share } from "./Share";
|
|
|
|
export { default as Star } from "./Star";
|
|
|
|
export { default as Team } from "./Team";
|
|
|
|
export { default as TeamDomain } from "./TeamDomain";
|
|
|
|
export { default as User } from "./User";
|
|
|
|
export { default as UserAuthentication } from "./UserAuthentication";
|
|
|
|
export { default as View } from "./View";
|