fixed gift card creating problem

This commit is contained in:
Daniel Camargo 2014-04-28 15:27:15 -03:00
parent 80bcde6522
commit fc097605f7

View File

@ -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 ) ) {