示例#1
0
/**
 * 
 *
 */
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');
}
示例#2
0
/**
 * 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');
}
示例#3
0
/**
 * 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;
    }
}
示例#4
0
/**
 * 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;
    }
}
示例#5
0
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');
}
示例#6
0
/**
 * 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');
}
示例#8
0
/**
 * 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');
}
示例#9
0
/**
 * 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');
}
示例#10
0
/**
 * 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');
}