core: add PRIV_USER_PROFILE to judge account

pull/56/head
undefined 4 years ago
parent de908236e3
commit ac6ccc438b

@ -1,6 +1,6 @@
{
"name": "hydrooj",
"version": "2.17.18",
"version": "2.17.19",
"bin": "bin/hydrooj.js",
"main": "dist/loader.js",
"typings": "dist/loader.d.ts",

@ -256,7 +256,7 @@ export async function setSuperAdmin(uid: number) {
}
export async function setJudge(uid: number) {
await setPriv(uid, PRIV.PRIV_JUDGE);
await setPriv(uid, PRIV.PRIV_USER_PROFILE | PRIV.PRIV_JUDGE);
return uid;
}

Loading…
Cancel
Save