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) {}
hasJobsRight () {
return this.auth.getUser().hasRight(UserRight.MANAGE_JOBS)
}
+
+ hasConfigRight () {
+ return this.auth.getUser().hasRight(UserRight.MANAGE_CONFIGURATION)
+ }
}