aboutsummaryrefslogtreecommitdiff
path: root/ufund-ui/src/app/components/dashboard/dashboard.component.ts
blob: b9faefa977abaa35ae79d24863ec2841197e360f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { Component } from '@angular/core';
import { UsersService } from '../../services/users.service';
import { userType } from '../../models/User';

@Component({
  selector: 'app-dashboard',
  standalone: false,
  templateUrl: './dashboard.component.html',
  styleUrl: './dashboard.component.css'
})
export class DashboardComponent {
    constructor(
      protected usersService: UsersService,
    ) {}

    isManager() {
        const type = this.usersService.getCurrentUser()?.type;
        return type === ("MANAGER" as unknown as userType);
      }

}