Skip to content

Commit

Permalink
refactor(static): 添加一个根路径鉴权
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangmy21 committed Aug 24, 2023
1 parent 25c77f3 commit cdff7e4
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/routes/static.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,6 @@ router.get("/", async (req, res) => {
.send("401 Unauthorized: Token expired or invalid");
}
const payload = decoded as JwtPayload;
const user_id = payload._id;
if (payload.role == 'counselor' || payload.role == 'root' || payload.role == 'admin') {
const sts = await getSTS(action, "*");
return res.status(200).send(sts);
Expand Down

0 comments on commit cdff7e4

Please sign in to comment.