0023: security definer

This commit is contained in:
TMA 2025-07-21 17:01:35 +02:00
parent 39fe8d97fd
commit 7a301379f0

View file

@ -61,7 +61,7 @@ GROUP BY ts.account;
CREATE OR REPLACE FUNCTION public.inventory_balance()
RETURNS DECIMAL(12,2)
VOLATILE NOT LEAKPROOF LANGUAGE plpgsql AS $fn$
VOLATILE NOT LEAKPROOF LANGUAGE plpgsql SECURITY DEFINER AS $fn$
DECLARE
rv DECIMAL(12,2);
BEGIN