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