Revision 56890
Added by Stefania Martziou over 4 years ago
auth-guard.service.ts | ||
---|---|---|
37 | 37 |
|
38 | 38 |
if (this.authenticationService.getUserRole() && |
39 | 39 |
(this.authenticationService.getUserRole().includes('ROLE_ADMIN') || |
40 |
this.authenticationService.getUserRole().includes('ROLE_PORTAL_ADMIN')) ) {
|
|
40 |
this.authenticationService.getUserRole().includes('ROLE_PROVIDE_ADMIN')) ) {
|
|
41 | 41 |
console.log('Admin recognized'); |
42 | 42 |
return true; |
43 | 43 |
} |
Also available in: Unified diff
Changed the role id for the admins