isPermittedCustomView($cvid,$now_action,$oCustomView->customviewmodule) == 'yes') { $updateStatusSql = "update vtiger_customview set status=? where cvid=? and entitytype=?"; $updateresult = $adb->pquery($updateStatusSql, array($status, $cvid, $module)); if(!$updateresult) echo ':#:FAILURE:#:'; else echo ':#:SUCCESS:#:' . $module . ':#:'; } else { global $theme, $app_strings; echo "
"; echo "
$app_strings[LBL_PERMISSION]
$app_strings[LBL_GO_BACK]
"; echo "
"; exit; } } ?>