diff options
author | Chocobozzz <me@florianbigard.com> | 2018-08-14 16:38:37 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-08-14 18:01:22 +0200 |
commit | 614d1ae928ec307b708c4a3eb423797353b1df2a (patch) | |
tree | 8281785fc158073e56d31a9e1923906b72622ae2 /client/src/app/+admin/moderation/moderation.component.ts | |
parent | 65b247ddc75aa9f131af86dde21c8d958f7f4b39 (diff) | |
download | PeerTube-614d1ae928ec307b708c4a3eb423797353b1df2a.tar.gz PeerTube-614d1ae928ec307b708c4a3eb423797353b1df2a.tar.zst PeerTube-614d1ae928ec307b708c4a3eb423797353b1df2a.zip |
Regroup abuse and blacklisted videos inside "moderation"
Diffstat (limited to 'client/src/app/+admin/moderation/moderation.component.ts')
-rw-r--r-- | client/src/app/+admin/moderation/moderation.component.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/client/src/app/+admin/moderation/moderation.component.ts b/client/src/app/+admin/moderation/moderation.component.ts new file mode 100644 index 000000000..0f4efb970 --- /dev/null +++ b/client/src/app/+admin/moderation/moderation.component.ts | |||
@@ -0,0 +1,19 @@ | |||
1 | import { Component } from '@angular/core' | ||
2 | import { UserRight } from '../../../../../shared' | ||
3 | import { AuthService } from '@app/core/auth/auth.service' | ||
4 | |||
5 | @Component({ | ||
6 | templateUrl: './moderation.component.html', | ||
7 | styleUrls: [ './moderation.component.scss' ] | ||
8 | }) | ||
9 | export class ModerationComponent { | ||
10 | constructor (private auth: AuthService) {} | ||
11 | |||
12 | hasVideoAbusesRight () { | ||
13 | return this.auth.getUser().hasRight(UserRight.MANAGE_VIDEO_ABUSES) | ||
14 | } | ||
15 | |||
16 | hasVideoBlacklistRight () { | ||
17 | return this.auth.getUser().hasRight(UserRight.MANAGE_VIDEO_BLACKLIST) | ||
18 | } | ||
19 | } | ||