Remove requirement that auth and emails must be enabled

This commit is contained in:
Konstantin Wohlwend 2026-01-30 18:51:05 -08:00
parent 57a050ef01
commit d36603973a

View File

@ -102,20 +102,6 @@ const branchAppsSchema = yupObject({
yupObject({
enabled: yupBoolean(),
}),
).test(
'authentication-and-emails-enabled',
'authentication and emails must be installed and enabled',
function(value) {
const hasAuthentication = value['authentication'].enabled === true;
const hasEmails = value['emails'].enabled === true;
if (!hasAuthentication || !hasEmails) {
return this.createError({
message: 'authentication and emails must be installed and enabled',
path: this.path,
});
}
return true;
}
),
});
// --- END NEW Apps Schema ---