From beb52e3c57d700d084b72f7f1c7b142fd3729f8b Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Mon, 25 Mar 2019 19:04:58 +0000 Subject: [PATCH] Bug 22577: Set 'cron' user for fines job --- misc/cronjobs/fines.pl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/misc/cronjobs/fines.pl b/misc/cronjobs/fines.pl index 89ad4a2d3c..4ee9f403fe 100755 --- a/misc/cronjobs/fines.pl +++ b/misc/cronjobs/fines.pl @@ -71,6 +71,10 @@ if ($help) { exit; } +C4::Context->set_userenv( + '-1', '-1', undef, 'CRON', 'CRON', undef, + undef, undef, undef, undef, undef +); cronlogaction(); my @borrower_fields = -- 2.20.1