diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-11-15 04:15:42 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-11-15 04:15:42 +0900 |
| commit | 56d571c0f0f525263ea6257a5d5a2e7a9085e203 (patch) | |
| tree | 69c40b1012f8c632e6601c50be9c7e2fb1a12e5c /src/server/api/endpoints/meta.ts | |
| parent | [Client] Add missing icon (diff) | |
| download | sharkey-56d571c0f0f525263ea6257a5d5a2e7a9085e203.tar.gz sharkey-56d571c0f0f525263ea6257a5d5a2e7a9085e203.tar.bz2 sharkey-56d571c0f0f525263ea6257a5d5a2e7a9085e203.zip | |
Moderator system
Closes #2357
Diffstat (limited to 'src/server/api/endpoints/meta.ts')
| -rw-r--r-- | src/server/api/endpoints/meta.ts | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/api/endpoints/meta.ts b/src/server/api/endpoints/meta.ts index f7c3179909..b324b113c8 100644 --- a/src/server/api/endpoints/meta.ts +++ b/src/server/api/endpoints/meta.ts @@ -84,7 +84,7 @@ export default define(meta, (ps, me) => new Promise(async (res, rej) => { }; } - if (me && me.isAdmin) { + if (me && (me.isAdmin || me.isModerator)) { response.hidedTags = instance.hidedTags; response.recaptchaSecretKey = instance.recaptchaSecretKey; response.proxyAccount = instance.proxyAccount; |