finished state and role based auth across the full API

This commit is contained in:
2025-12-14 11:38:45 -05:00
parent b91ecacb60
commit 9229475836
6 changed files with 23 additions and 17 deletions

View File

@@ -14,7 +14,7 @@ export function requireMemberState(state: MemberState) {
if (req.user?.state === state)
next();
else
res.status(403).send("You must be a member of the 17th RBN to access this resource");
res.status(403).send(`You must be a ${state} of the 17th RBN to access this resource`);
}
}