mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 09:36:08 +08:00
core: add PRIV_USER_PROFILE to judge account
This commit is contained in:
1 parent
de908236e3
commit
ac6ccc438b
2 files changed
+2
-2
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user