78243: edit-item-page mocks, item-status operation refactoring

This commit is contained in:
Kristof De Langhe
2021-04-16 11:36:33 +02:00
parent 3504feedf3
commit fd437eb7ee
8 changed files with 132 additions and 40 deletions

View File

@@ -216,7 +216,7 @@ export const returnForbiddenUrlTreeOrLoginOnAllFalse = (router: Router, authServ
(source: Observable<boolean[]>): Observable<boolean | UrlTree> =>
observableCombineLatest(source, authService.isAuthenticated()).pipe(
map(([authorizedList, authenticated]: [boolean[], boolean]) => {
if (authorizedList.indexOf(true) > -1) {
if (authorizedList.some((b: boolean) => b === true)) {
return true;
} else {
if (authenticated) {