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:
William Nolin 2021-02-15 18:46:58 +00:00
commit fa3dc0093e
1 changed files with 2 additions and 1 deletions

View File

@ -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() {