mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-08 04:12:59 +00:00
fix: Actions V2 improve deleted target handling in executions (#9822)
# Which Problems Are Solved
Previously, if a target was deleted but still referenced by an
execution, it became impossible to load the executions.
# How the Problems Are Solved
Missing targets in the execution table are now gracefully ignored,
allowing executions to load without errors.
# Additional Changes
Enhanced permission handling in the settings sidenav to ensure users
have the correct access rights.
(cherry picked from commit 48c1f7e49f)
This commit is contained in:
@@ -1,7 +1,18 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { SortDirection } from '@angular/material/sort';
|
||||
import { OAuthService } from 'angular-oauth2-oidc';
|
||||
import { BehaviorSubject, combineLatestWith, EMPTY, mergeWith, NEVER, Observable, of, shareReplay, Subject } from 'rxjs';
|
||||
import {
|
||||
BehaviorSubject,
|
||||
combineLatestWith,
|
||||
EMPTY,
|
||||
identity,
|
||||
mergeWith,
|
||||
NEVER,
|
||||
Observable,
|
||||
of,
|
||||
shareReplay,
|
||||
Subject,
|
||||
} from 'rxjs';
|
||||
import { catchError, distinctUntilChanged, filter, finalize, map, startWith, switchMap, tap, timeout } from 'rxjs/operators';
|
||||
|
||||
import {
|
||||
@@ -326,7 +337,7 @@ export class GrpcAuthService {
|
||||
return new RegExp(reqRegexp).test(role);
|
||||
});
|
||||
|
||||
const allCheck = requestedRoles.map(test).every((x) => !!x);
|
||||
const allCheck = requestedRoles.map(test).every(identity);
|
||||
const oneCheck = requestedRoles.some(test);
|
||||
|
||||
return requiresAll ? allCheck : oneCheck;
|
||||
|
||||
Reference in New Issue
Block a user