سامانه صدور فاکتور و حسابداری
Mirrored from https://github.com/davoodmehraban89/Factor-easy.git
Synced Dec 3, 23:15 UTC
fix(security): use valid accounting authorization source type
davoodmehraban89 committed
Nov 18, 2026 at 09:09 UTC
d1551a78cf2c12fa6d5493f5ea4e403c2789a843
1 file changed
+2
-2
supabase/migrations/20261118100000_journal_document_lifecycle.sql
+2
-2
@@ -64,7 +64,7 @@ DECLARE
64
v_atf bigint;
65
v_temp bigint;
66
BEGIN
67
- PERFORM private.finora_phase1a_authorize(p_organization_id,'create','journalVoucher');
67
+ PERFORM private.finora_phase1a_authorize(p_organization_id,'create',NULL);
68
69
SELECT * INTO v_existing
70
FROM public.finora_journal_document_registry
@@ -140,7 +140,7 @@ LANGUAGE plpgsql SECURITY DEFINER SET search_path=''
140
AS $$
141
DECLARE v public.finora_journal_document_registry%rowtype;
142
BEGIN
143
- PERFORM private.finora_phase1a_authorize(p_organization_id,'edit','journalVoucher');
143
+ PERFORM private.finora_phase1a_authorize(p_organization_id,'edit',NULL);
144
IF coalesce(trim(p_reason),'')='' THEN
145
RAISE EXCEPTION 'FINORA_DELETE_REASON_REQUIRED' USING ERRCODE='23514';
146
END IF;