fix(housekeeping): close final authorization gaps

This commit is contained in:
Simo committed 2026-08-30 21:01:32 +02:00
1 parent 2b8f73a91d
commit 222535e116
9 files changed
+219 -44

No files matched your search

+2 -2
View File
@@ -38,7 +38,7 @@ describe("administration backend contract", () => {
expect(source).not.toMatch(/await requireStaffRateLimited\(\)/);
});
it("keeps requireStaff only for the approved legacy logo security floor", () => {
it("requires explicit permissions for every administration action", () => {
const dir = "src/actions";
const offenders: string[] = [];
for (const name of readdirSync(dir)) {
@@ -48,7 +48,7 @@ describe("administration backend contract", () => {
offenders.push(name);
}
}
expect(offenders).toEqual(["save-logo.ts"]);
expect(offenders).toEqual([]);
});
it("keeps the shared ops health probe behind the API", () => {