MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / setJudge

Method setJudge

packages/hydrooj/src/model/user.ts:467–473  ·  view source on GitHub ↗
(uid: number)

Source from the content-addressed store, hash-verified

465
466 @ArgMethod
467 static async setJudge(uid: number) {
468 return await UserModel.setPriv(
469 uid,
470 PRIV.PRIV_USER_PROFILE | PRIV.PRIV_JUDGE | PRIV.PRIV_VIEW_ALL_DOMAIN
471 | PRIV.PRIV_READ_PROBLEM_DATA | PRIV.PRIV_UNLIMITED_ACCESS,
472 );
473 }
474
475 @ArgMethod
476 static ban(uid: number, reason = '') {

Callers

nothing calls this directly

Calls 1

setPrivMethod · 0.80

Tested by

no test coverage detected