diff --git a/include/controllers/default/crunchbutton/api/giftcard/index.php b/include/controllers/default/crunchbutton/api/giftcard/index.php index fd84e5735..c95052f4d 100644 --- a/include/controllers/default/crunchbutton/api/giftcard/index.php +++ b/include/controllers/default/crunchbutton/api/giftcard/index.php @@ -2,13 +2,15 @@ class Controller_api_Giftcard extends Crunchbutton_Controller_Rest { public function init() { - +echo '
';var_dump( c::admin() );exit();
switch ( $this->method() ) {
case 'post':
if ( c::admin()->id_admin || $_SESSION['admin'] ) {
+
+
// Verify the permissions
switch ( c::getPagePiece( 2 ) ) {
case 'sms':
diff --git a/include/library/Crunchbutton/Community/Shift.php b/include/library/Crunchbutton/Community/Shift.php
index defc60a0b..cb81ffdf4 100644
--- a/include/library/Crunchbutton/Community/Shift.php
+++ b/include/library/Crunchbutton/Community/Shift.php
@@ -606,7 +606,7 @@ class Crunchbutton_Community_Shift extends Cana_Table {
$admin = $assignment->admin();
if( $shift && $admin ){
- $message = "Remember: you're scheduled to drive for Crunchbutton tomorrow, " . $now->format( 'M jS Y' ) . ", from " . $shift->startEndToString();
+ $message = "Remember: you're scheduled to drive for Crunchbutton tomorrow, " . $now->format( 'M jS Y' ) . ", from " . $shift->startEndToString() . "\nRemember to charge your phone!";
$txt = $admin->txt;
$phone = $admin->phone;