core: add PRIV_USER_PROFILE to judge account

This commit is contained in:
undefined committed 2021-02-23 12:06:45 +08:00
1 parent de908236e3
commit ac6ccc438b
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "hydrooj", "name": "hydrooj",
"version": "2.17.18", "version": "2.17.19",
"bin": "bin/hydrooj.js", "bin": "bin/hydrooj.js",
"main": "dist/loader.js", "main": "dist/loader.js",
"typings": "dist/loader.d.ts", "typings": "dist/loader.d.ts",
+1 -1
View File
@@ -256,7 +256,7 @@ export async function setSuperAdmin(uid: number) {
} }
export async function setJudge(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; return uid;
} }