HasPermission: remove unused _authorizer from strict_check helper

This commit is contained in:
Moritz 2026-01-27 15:44:40 +01:00 committed by moritz
parent 3f95a2dd84
commit 4d3a249b0c

View file

@ -110,12 +110,12 @@ defmodule Mv.Authorization.Checks.HasPermission do
{:ok, false} {:ok, false}
true -> true ->
strict_check_with_permissions(actor, resource, action, record, authorizer) strict_check_with_permissions(actor, resource, action, record)
end end
end end
# Helper function to reduce nesting depth # Helper function to reduce nesting depth
defp strict_check_with_permissions(actor, resource, action, record, _authorizer) do defp strict_check_with_permissions(actor, resource, action, record) do
# Ensure role is loaded (fallback if on_mount didn't run) # Ensure role is loaded (fallback if on_mount didn't run)
actor = ensure_role_loaded(actor) actor = ensure_role_loaded(actor)