Add verifyUserIsServerAdmin middleware to supporter key endpoints

Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-10-29 07:35:08 +00:00
parent 6ca93fbd4e
commit b61cdb63d3

View File

@@ -542,9 +542,14 @@ authenticated.get(`/org/:orgId/overview`, verifyOrgAccess, org.getOrgOverview);
authenticated.post(
`/supporter-key/validate`,
verifyUserIsServerAdmin,
supporterKey.validateSupporterKey
);
authenticated.post(`/supporter-key/hide`, supporterKey.hideSupporterKey);
authenticated.post(
`/supporter-key/hide`,
verifyUserIsServerAdmin,
supporterKey.hideSupporterKey
);
unauthenticated.get(
"/resource/:resourceGuid/auth",