Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

flows: fix inspector permission check #12907

Merged
merged 1 commit into from
Feb 1, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion authentik/flows/views/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@
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(

Check warning on line 81 in authentik/flows/views/inspector.py

View check run for this annotation

Codecov / codecov/patch

authentik/flows/views/inspector.py#L81

Added line #L81 was not covered by tests
"authentik_flows.inspect_flow", self.flow
):
return
raise Http404

Expand Down
Loading