[SUCS Devel] [Git][sucssite/sucs-site][master] Fix renewal (via the susignup system) print credits not being added

Imran Hussain imranh at sucs.org
Sun Sep 23 11:38:50 BST 2018


Imran Hussain pushed to branch master at sucssite / sucs-site


Commits:
5ba33ffa by Imran Hussain at 2018-09-23T11:38:46+01:00
Fix renewal (via the susignup system) print credits not being added
- - - - -


1 changed file:

- lib/member_functions.php


Changes:

=====================================
lib/member_functions.php
=====================================
--- 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";



View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/5ba33ffa87925e633319231684004dab5caf2ee9

-- 
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/commit/5ba33ffa87925e633319231684004dab5caf2ee9
You're receiving this email because of your account on projects.sucs.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.sucs.org/pipermail/devel/attachments/20180923/fa725473/attachment.html>


More information about the Devel mailing list