From 5ba33ffa87925e633319231684004dab5caf2ee9 Mon Sep 17 00:00:00 2001 From: Imran Hussain Date: Sun, 23 Sep 2018 11:38:46 +0100 Subject: [PATCH] Fix renewal (via the susignup system) print credits not being added --- lib/member_functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/member_functions.php b/lib/member_functions.php index f5f4d7b..be31e5f 100644 --- a/lib/member_functions.php +++ b/lib/member_functions.php @@ -126,7 +126,7 @@ function renew_membership($username) $sucsDB->Execute("UPDATE members SET paid=?, lastupdate=DEFAULT, lastedit=? WHERE username=?", array(paidUntil(time()), "99999", $username)); // Give them their 200 print credits - exec("/usr/local/sbin/printerrenew.apache ${username} 200"); + exec("sudo /usr/local/sbin/printerrenew.apache ${username} 200"); // apprently sending them an email confirming so is nice $message = "Your Swansea University Computer Society (SUCS) membership has been renewed\n\n"; -- GitLab