Merge branch '3-rendre-les-groupes-par-defaut-fonctionnelles-dans-le-frontend-angular' into 'master'
Resolve "Rendre les groupes par défaut fonctionnelles dans le frontend Angular" Closes #3 See merge request color-recipes-explorer/frontend!3
This commit is contained in:
commit
fa3dc0093e
|
@ -98,7 +98,8 @@ export class ApiService implements OnDestroy {
|
|||
}
|
||||
|
||||
private checkAuthenticated(): boolean {
|
||||
return this.appState.isAuthenticated && Date.now() <= this.appState.authenticationExpiration
|
||||
return (this.appState.isAuthenticated && Date.now() <= this.appState.authenticationExpiration) ||
|
||||
(this.appState.authenticatedEmployee && this.appState.authenticatedEmployee.group != null)
|
||||
}
|
||||
|
||||
private navigateToLogin() {
|
||||
|
|
Loading…
Reference in New Issue