diff --git a/authentik/flows/api/flows.py b/authentik/flows/api/flows.py index 469c78306..7fddfc3c5 100644 --- a/authentik/flows/api/flows.py +++ b/authentik/flows/api/flows.py @@ -210,6 +210,7 @@ class FlowViewSet(ModelViewSet): request.user, "authentik_policies.view_policybinding" ) .filter(target=stage_binding) + .exclude(policy__isnull=True) .order_by("order") ): body.append( diff --git a/web/src/pages/flows/FlowViewPage.ts b/web/src/pages/flows/FlowViewPage.ts index af1e12a28..1d4a68327 100644 --- a/web/src/pages/flows/FlowViewPage.ts +++ b/web/src/pages/flows/FlowViewPage.ts @@ -58,14 +58,6 @@ export class FlowViewPage extends LitElement {