GRANT EXECUTE ON FUNCTION public.has_role(uuid, app_role) TO authenticated, anon;
GRANT EXECUTE ON FUNCTION public.is_staff(uuid) TO authenticated, anon;
GRANT EXECUTE ON FUNCTION public.has_permission(uuid, text) TO authenticated, anon;
GRANT EXECUTE ON FUNCTION public.get_user_branch_id(uuid) TO authenticated, anon;
GRANT EXECUTE ON FUNCTION public.get_customer_order_stats(uuid) TO authenticated;
GRANT EXECUTE ON FUNCTION public.next_invoice_no() TO authenticated;
