当前位置: 首页>>代码示例>>PHP>>正文


PHP checkSecurityClearance函数代码示例

本文整理汇总了PHP中checkSecurityClearance函数的典型用法代码示例。如果您正苦于以下问题:PHP checkSecurityClearance函数的具体用法?PHP checkSecurityClearance怎么用?PHP checkSecurityClearance使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了checkSecurityClearance函数的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: checkRights

/**
 * 
 *
 */
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');
}
开发者ID:moraesmv,项目名称:testlink-code,代码行数:15,代码来源:cfieldsView.php

示例2: checkRights

/**
 * 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');
}
开发者ID:moraesmv,项目名称:testlink-code,代码行数:15,代码来源:projectView.php

示例3: checkRights

/**
 * 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;
    }
}
开发者ID:moraesmv,项目名称:testlink-code,代码行数:15,代码来源:editExecution.php

示例4: checkRights

/**
 * 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;
    }
}
开发者ID:moraesmv,项目名称:testlink-code,代码行数:15,代码来源:bugDelete.php

示例5: 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('platform_management'), 'and');
}
开发者ID:moraesmv,项目名称:testlink-code,代码行数:6,代码来源:platformsEdit.php

示例6: checkRights

/**
 * 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');
}
开发者ID:moraesmv,项目名称:testlink-code,代码行数:10,代码来源:buildEdit.php

示例7: checkRights

/**
 * 
 *
 */
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');
}
开发者ID:moraesmv,项目名称:testlink-code,代码行数:10,代码来源:testCasesWithoutTester.php

示例8: checkRights

/**
 * 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');
}
开发者ID:moraesmv,项目名称:testlink-code,代码行数:10,代码来源:reqImport.php


注:本文中的checkSecurityClearance函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。