Skip to content

Commit

Permalink
Dev: Fixed issue #8246: Can't browse token
Browse files Browse the repository at this point in the history
Dev: dabf347 child
  • Loading branch information
Shnoulle committed Oct 8, 2013
1 parent 40178b8 commit 46f2a43
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions application/controllers/admin/tokens.php
Expand Up @@ -273,10 +273,10 @@ function browse($iSurveyId, $limit = 50, $start = 0, $order = false, $searchstri
}

/* build JS variable to hide buttons forbidden for the current user */
$aData['showDelButton'] = hasSurveyPermission($iSurveyId, 'tokens', 'delete')?'true':'false';
$aData['showInviteButton'] = hasSurveyPermission($iSurveyId, 'tokens', 'update')?'true':'false';
$aData['showBounceButton'] = hasSurveyPermission($iSurveyId, 'tokens', 'update')?'true':'false';
$aData['showRemindButton'] = hasSurveyPermission($iSurveyId, 'tokens', 'update')?'true':'false';
$aData['showDelButton'] = Permission::model()->hasSurveyPermission($iSurveyId, 'tokens', 'delete')?'true':'false';
$aData['showInviteButton'] = Permission::model()->hasSurveyPermission($iSurveyId, 'tokens', 'update')?'true':'false';
$aData['showBounceButton'] = Permission::model()->hasSurveyPermission($iSurveyId, 'tokens', 'update')?'true':'false';
$aData['showRemindButton'] = Permission::model()->hasSurveyPermission($iSurveyId, 'tokens', 'update')?'true':'false';

// Javascript
App()->getClientScript()->registerPackage('jqgrid');
Expand Down

0 comments on commit 46f2a43

Please sign in to comment.