Project

General

Profile

« Previous | Next » 

Revision 61426

changed roles for super admin and provide admin

View differences:

auth-guard.service.ts
36 36
  canLoad () {
37 37

  
38 38
    if (this.authenticationService.getUserRole() &&
39
        (this.authenticationService.getUserRole().includes('ROLE_ADMIN') ||
40
         this.authenticationService.getUserRole().includes('ROLE_PROVIDE_ADMIN')) ) {
39
        (this.authenticationService.getUserRole().includes('SUPER_ADMINISTRATOR') ||
40
         this.authenticationService.getUserRole().includes('CONTENT_PROVIDER_DASHBOARD_ADMINISTRATOR')) ) {
41 41
      console.log('Admin recognized');
42 42
      return true;
43 43
    }

Also available in: Unified diff