Commit 5ba33ffa authored by Imran Hussain's avatar Imran Hussain

Fix renewal (via the susignup system) print credits not being added

parent d82a30ad
Pipeline #437 passed with stage
in 3 minutes and 43 seconds
......@@ -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";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment