Files
outline/server/presenters/team.ts
Tom Moor e30f6e937c fix: Automatically disable email sign-in when SMTP is not configured
fix: Do not show email signin as enabled when SMTP configured
closes #3227
2022-03-12 17:01:46 -08:00

19 lines
503 B
TypeScript

import { Team } from "@server/models";
export default function present(team: Team) {
return {
id: team.id,
name: team.name,
avatarUrl: team.logoUrl,
sharing: team.sharing,
collaborativeEditing: team.collaborativeEditing,
defaultCollectionId: team.defaultCollectionId,
documentEmbeds: team.documentEmbeds,
guestSignin: team.emailSigninEnabled,
subdomain: team.subdomain,
domain: team.domain,
url: team.url,
defaultUserRole: team.defaultUserRole,
};
}