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

Imran Hussain imranh at sucs.org
Sun Sep 23 11:45:53 BST 2018


Imran Hussain pushed to branch beta 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
- - - - -
0c670fb1 by Imran Hussain at 2018-09-23T11:45:50+01:00
Merge branch 'master' into 'beta'

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

See merge request sucssite/sucs-site!82
- - - - -


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/compare/e4b0760bc71dee751b4c3f2d91b8e43aada97bdb...0c670fb1dbca6d7e546e3df4141f834e3df55d2a

-- 
View it on GitLab: https://projects.sucs.org/sucssite/sucs-site/compare/e4b0760bc71dee751b4c3f2d91b8e43aada97bdb...0c670fb1dbca6d7e546e3df4141f834e3df55d2a
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/5a2d41a6/attachment-0001.html>


More information about the Devel mailing list