From 185ccb02175e8b8664f05b0c1525409d39c75035 Mon Sep 17 00:00:00 2001 From: Moritz Date: Tue, 27 Jan 2026 15:44:40 +0100 Subject: [PATCH] HasPermission: remove unused _authorizer from strict_check helper --- lib/mv/authorization/checks/has_permission.ex | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/mv/authorization/checks/has_permission.ex b/lib/mv/authorization/checks/has_permission.ex index 1cf1e39..774e767 100644 --- a/lib/mv/authorization/checks/has_permission.ex +++ b/lib/mv/authorization/checks/has_permission.ex @@ -110,12 +110,12 @@ defmodule Mv.Authorization.Checks.HasPermission do {:ok, false} true -> - strict_check_with_permissions(actor, resource, action, record, authorizer) + strict_check_with_permissions(actor, resource, action, record) end end # 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) actor = ensure_role_loaded(actor)