From ec5dab6545ac0238b7fe61623cd0262d40844613 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sat, 1 Feb 2025 00:42:56 +0100 Subject: [PATCH] flows: fix inspector permission check Signed-off-by: Jens Langhammer --- authentik/flows/views/inspector.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/authentik/flows/views/inspector.py b/authentik/flows/views/inspector.py index 74ab56dec546..369f6da59b76 100644 --- a/authentik/flows/views/inspector.py +++ b/authentik/flows/views/inspector.py @@ -78,7 +78,9 @@ def setup(self, request: HttpRequest, flow_slug: str): self.flow = get_object_or_404(Flow.objects.select_related(), slug=flow_slug) if settings.DEBUG: return - if request.user.has_perm("authentik_flow.inspect_flow", self.flow): + if request.user.has_perm("authentik_flows.inspect_flow") or request.user.has_perm( + "authentik_flows.inspect_flow", self.flow + ): return raise Http404