MCPcopy Create free account
hub / github.com/MCSManager/MCSManager / tokenError

Function tokenError

panel/src/app/middleware/permission.ts:32–35  ·  view source on GitHub ↗
(ctx: Koa.ParameterizedContext)

Source from the content-addressed store, hash-verified

30}
31
32function tokenError(ctx: Koa.ParameterizedContext) {
33 ctx.status = 403;
34 ctx.body = `${$t("TXT_CODE_permission.forbiddenTokenError")}`;
35}
36
37function ajaxError(ctx: Koa.ParameterizedContext) {
38 ctx.status = 403;

Callers 1

permission.tsFile · 0.85

Calls 1

$tFunction · 0.90

Tested by

no test coverage detected