本文整理汇总了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');
}
示例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');
}
示例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;
}
}
示例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;
}
}
示例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');
}
示例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');
}
示例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');
}
示例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');
}