Two functions are at play here: this.baseAuthentification.canActivate(route, state) and this.haveDroits(). Both of them return observables.
I am looking to return an observable in case this.baseAuthentification.canActivate(route, state) returns false. If it returns true, I want to return the value of this.haveDroits(). Is there a way to achieve this using rxjs?
Thank you, and apologies for any language errors in my English.