/** * * */ function checkRights(&$db, &$userObj, $argsObj) { // Custom fields are System Wide items, for this reason for this feature // check must be done on Global Rights => those that belong to role assigned to user // when user was created (Global/Default Role) => enviroment is ignored. // To instruct method to ignore enviromente, we need to set enviroment but with INEXISTENT ID // (best option is negative value) $env['tproject_id'] = -1; $env['tplan_id'] = -1; checkSecurityClearance($db, $userObj, $env, array('cfield_view'), 'and'); }
/** * checkRights * */ function checkRights(&$db, &$userObj, $argsObj) { // For this feature check must be done on Global Rights => those that belong to // role assigned to user when user was created (Global/Default Role) // => enviroment is ignored. // To instruct method to ignore enviromente, we need to set enviroment but with INEXISTENT ID // (best option is negative value) $env['tproject_id'] = -1; $env['tplan_id'] = -1; checkSecurityClearance($db, $userObj, $env, array('mgt_modify_product'), 'and'); }
/** * Checks the user rights for using the page * */ function checkRights(&$db, &$userObj, $argsObj) { $env['tproject_id'] = isset($argsObj->tproject_id) ? $argsObj->tproject_id : 0; $env['tplan_id'] = isset($argsObj->tplan_id) ? $argsObj->tplan_id : 0; if ($userObj->hasRight($dbHandler, "exec_edit_notes", $env['tproject_id'], $env['tplan_id'])) { checkSecurityClearance($db, $userObj, $env, array('testplan_execute'), 'and'); } else { redirect($_SESSION['basehref'], "top.location"); exit; } }
/** * Checks the user rights for using the page * */ function checkRights(&$db, &$userObj, $argsObj) { if (config_get('bugInterfaceOn')) { $env['tproject_id'] = isset($argsObj->tproject_id) ? $argsObj->tproject_id : 0; $env['tplan_id'] = isset($argsObj->tplan_id) ? $argsObj->tplan_id : 0; checkSecurityClearance($db, $userObj, $env, array('testplan_execute'), 'and'); } else { redirect($_SESSION['basehref'], "top.location"); exit; } }
function checkRights(&$db, &$userObj, $argsObj) { $env['tproject_id'] = isset($argsObj->tproject_id) ? $argsObj->tproject_id : 0; $env['tplan_id'] = isset($argsObj->tplan_id) ? $argsObj->tplan_id : 0; checkSecurityClearance($db, $userObj, $env, array('platform_management'), 'and'); }
/** * checkRights * */ function checkRights(&$db, &$userObj, $argsObj) { $env['tproject_id'] = isset($argsObj->tproject_id) ? $argsObj->tproject_id : 0; $env['tplan_id'] = isset($argsObj->tplan_id) ? $argsObj->tplan_id : 0; checkSecurityClearance($db, $userObj, $env, array('testplan_create_build'), 'and'); }
/** * * */ function checkRights(&$db, &$userObj, $argsObj) { $env['tproject_id'] = $argsObj->tproject_id; $env['tplan_id'] = $argsObj->tplan_id; checkSecurityClearance($db, $userObj, $env, array('testplan_metrics'), 'and'); }
/** * checkRights * */ function checkRights(&$db, &$userObj, $argsObj) { $env['tproject_id'] = isset($argsObj->tproject_id) ? $argsObj->tproject_id : 0; $env['tplan_id'] = isset($argsObj->tplan_id) ? $argsObj->tplan_id : 0; checkSecurityClearance($db, $userObj, $env, array('mgt_view_req', 'mgt_modify_req'), 'and'); }
/** * checkRights * */ function checkRights(&$db, &$userObj, $argsObj) { $env['tproject_id'] = isset($argsObj->tproject_id) ? $argsObj->tproject_id : 0; $env['tplan_id'] = isset($argsObj->tplan_id) ? $argsObj->tplan_id : 0; checkSecurityClearance($db, $userObj, $env, array('keyword_assignment', 'mgt_view_key'), 'and'); }
/** * checkRights * */ function checkRights(&$db, &$userObj, $argsObj) { $env['tproject_id'] = isset($argsObj->tproject_id) ? $argsObj->tproject_id : 0; $env['tplan_id'] = isset($argsObj->tplan_id) ? $argsObj->tplan_id : 0; checkSecurityClearance($db, $userObj, $env, array('testplan_metrics', 'testplan_execute'), 'or'); }