fixed gift card creating problem
This commit is contained in:
parent
80bcde6522
commit
fc097605f7
@ -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 ) ) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user