summaryrefslogtreecommitdiff
path: root/src/server/api/endpoints.ts
diff options
context:
space:
mode:
authorsyuilo <syuilotan@yahoo.co.jp>2018-11-15 04:15:42 +0900
committersyuilo <syuilotan@yahoo.co.jp>2018-11-15 04:15:42 +0900
commit56d571c0f0f525263ea6257a5d5a2e7a9085e203 (patch)
tree69c40b1012f8c632e6601c50be9c7e2fb1a12e5c /src/server/api/endpoints.ts
parent[Client] Add missing icon (diff)
downloadsharkey-56d571c0f0f525263ea6257a5d5a2e7a9085e203.tar.gz
sharkey-56d571c0f0f525263ea6257a5d5a2e7a9085e203.tar.bz2
sharkey-56d571c0f0f525263ea6257a5d5a2e7a9085e203.zip
Moderator system
Closes #2357
Diffstat (limited to 'src/server/api/endpoints.ts')
-rw-r--r--src/server/api/endpoints.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/server/api/endpoints.ts b/src/server/api/endpoints.ts
index e764ac2e95..6765a63e9f 100644
--- a/src/server/api/endpoints.ts
+++ b/src/server/api/endpoints.ts
@@ -31,6 +31,11 @@ export interface IEndpointMeta {
requireAdmin?: boolean;
/**
+ * 管理者またはモデレーターのみ使えるエンドポイントか否か
+ */
+ requireModerator?: boolean;
+
+ /**
* エンドポイントのリミテーションに関するやつ
* 省略した場合はリミテーションは無いものとして解釈されます。
* また、withCredential が false の場合はリミテーションを行うことはできません。