Revision 51512
Added by Myrto Koukouli about 6 years ago
topmenu.component.ts | ||
---|---|---|
47 | 47 |
} |
48 | 48 |
|
49 | 49 |
isUserAdmin() { |
50 |
/* ACTUAL ADMINS WILL HAVE A ROLE OF 'ROLE_ADMIN' */ |
|
51 |
return this.authService.getUserRole().includes('ROLE_USER'); |
|
50 |
return this.authService.getUserRole().includes('ROLE_ADMIN'); |
|
52 | 51 |
} |
53 | 52 |
} |
Also available in: Unified diff
changed piwik enable and approve methods