Unveränderter Stand von certvia/dev (a48c5fb) plus Craftvia-Spezifikation und Brandbook unter docs/craftvia/. ISMS-Module werden im Folgecommit entfernt. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
11 lines
405 B
TypeScript
11 lines
405 B
TypeScript
import { prisma } from "./db";
|
|
|
|
/**
|
|
* Plattformweite Betriebseinstellungen (Singleton). Steuert die MFA-Pflicht für
|
|
* Plattform-Admins (Default: aus → MFA optional, Paket C). Ohne Zeile gilt der Default.
|
|
*/
|
|
export async function getPlatformSettings() {
|
|
const row = await prisma.platformSetting.findUnique({ where: { id: "singleton" } });
|
|
return row ?? { id: "singleton", mfaRequired: false };
|
|
}
|