From fc097605f74225feb4ffe97b283feb3067d279e8 Mon Sep 17 00:00:00 2001 From: Daniel Camargo Date: Mon, 28 Apr 2014 15:27:15 -0300 Subject: [PATCH] fixed gift card creating problem --- include/controllers/default/crunchbutton/api/giftcard/index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/controllers/default/crunchbutton/api/giftcard/index.php b/include/controllers/default/crunchbutton/api/giftcard/index.php index e3e844a28..45792ce68 100644 --- a/include/controllers/default/crunchbutton/api/giftcard/index.php +++ b/include/controllers/default/crunchbutton/api/giftcard/index.php @@ -7,7 +7,7 @@ class Controller_api_Giftcard extends Crunchbutton_Controller_Rest { case 'post': - if ($_SESSION['admin']) { + if ( c::admin()->id_admin ) { // Verify the permissions switch ( c::getPagePiece( 2 ) ) {