diff options
author | Chocobozzz <me@florianbigard.com> | 2019-04-11 10:56:29 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-04-11 10:58:09 +0200 |
commit | 5d79474cc66383ecbfcef6366f63a34c3af21cbf (patch) | |
tree | 6b2cd85c25294ca04c94cbbcc90353d25e9cee06 /shared/models | |
parent | 2b3f1919fda81c2781ceeb9071d426c184e1b21c (diff) | |
download | PeerTube-5d79474cc66383ecbfcef6366f63a34c3af21cbf.tar.gz PeerTube-5d79474cc66383ecbfcef6366f63a34c3af21cbf.tar.zst PeerTube-5d79474cc66383ecbfcef6366f63a34c3af21cbf.zip |
Add debug component to help admins to fix IP issues
Diffstat (limited to 'shared/models')
-rw-r--r-- | shared/models/server/debug.model.ts | 3 | ||||
-rw-r--r-- | shared/models/server/index.ts | 1 | ||||
-rw-r--r-- | shared/models/users/user-right.enum.ts | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/shared/models/server/debug.model.ts b/shared/models/server/debug.model.ts new file mode 100644 index 000000000..61cba6518 --- /dev/null +++ b/shared/models/server/debug.model.ts | |||
@@ -0,0 +1,3 @@ | |||
1 | export interface Debug { | ||
2 | ip: string | ||
3 | } | ||
diff --git a/shared/models/server/index.ts b/shared/models/server/index.ts index c42f6f67f..bf61ab270 100644 --- a/shared/models/server/index.ts +++ b/shared/models/server/index.ts | |||
@@ -1,6 +1,7 @@ | |||
1 | export * from './about.model' | 1 | export * from './about.model' |
2 | export * from './contact-form.model' | 2 | export * from './contact-form.model' |
3 | export * from './custom-config.model' | 3 | export * from './custom-config.model' |
4 | export * from './debug.model' | ||
4 | export * from './job.model' | 5 | export * from './job.model' |
5 | export * from './server-config.model' | 6 | export * from './server-config.model' |
6 | export * from './server-stats.model' | 7 | export * from './server-stats.model' |
diff --git a/shared/models/users/user-right.enum.ts b/shared/models/users/user-right.enum.ts index 5ec255ea5..71701bdb4 100644 --- a/shared/models/users/user-right.enum.ts +++ b/shared/models/users/user-right.enum.ts | |||
@@ -7,6 +7,8 @@ export enum UserRight { | |||
7 | 7 | ||
8 | MANAGE_LOGS, | 8 | MANAGE_LOGS, |
9 | 9 | ||
10 | MANAGE_DEBUG, | ||
11 | |||
10 | MANAGE_SERVER_REDUNDANCY, | 12 | MANAGE_SERVER_REDUNDANCY, |
11 | 13 | ||
12 | MANAGE_VIDEO_ABUSES, | 14 | MANAGE_VIDEO_ABUSES, |