import { AuthService } from '../core/auth/auth.service'
@Component({
- templateUrl: './admin.component.html',
- styleUrls: [ './admin.component.scss' ]
+ templateUrl: './admin.component.html'
})
export class AdminComponent {
constructor (private auth: AuthService) {}
return this.auth.getUser().hasRight(UserRight.MANAGE_VIDEO_BLACKLIST)
}
+ hasConfigRight () {
+ return this.auth.getUser().hasRight(UserRight.MANAGE_CONFIGURATION)
+ }
+
+ hasPluginsRight () {
+ return this.auth.getUser().hasRight(UserRight.MANAGE_PLUGINS)
+ }
+
+ hasLogsRight () {
+ return this.auth.getUser().hasRight(UserRight.MANAGE_LOGS)
+ }
+
hasJobsRight () {
return this.auth.getUser().hasRight(UserRight.MANAGE_JOBS)
}
- hasConfigRight () {
- return this.auth.getUser().hasRight(UserRight.MANAGE_CONFIGURATION)
+ hasDebugRight () {
+ return this.auth.getUser().hasRight(UserRight.MANAGE_DEBUG)
}
}