fix(housekeeping): close final authorization gaps
This commit is contained in:
1 parent
2b8f73a91d
commit
222535e116
9 files changed
+219
-44
No files matched your search
@@ -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", () => {
|
||||
|
||||
Reference in new issue
Block a user