Merge branch 'dev' into feat/resource-policies

This commit is contained in:
Fred KISSIE
2026-03-12 22:19:37 +01:00
34 changed files with 2259 additions and 3242 deletions

View File

@@ -375,6 +375,20 @@ async function updateHttpResource(
);
}
// Prevent updating resource with same domain as dashboard
const dashboardUrl = config.getRawConfig().app.dashboard_url;
if (dashboardUrl) {
const dashboardHost = new URL(dashboardUrl).hostname;
if (fullDomain === dashboardHost) {
return next(
createHttpError(
HttpCode.CONFLICT,
"Resource domain cannot be the same as the dashboard domain"
)
);
}
}
if (build != "oss") {
const existingLoginPages = await db
.select()