mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-05 19:17:29 -06:00
Add verifyUserIsServerAdmin middleware to supporter key endpoints
Co-authored-by: oschwartz10612 <4999704+oschwartz10612@users.noreply.github.com>
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user