$verdict |= ($permissions["$group"]["$productid"] & $bugsys->permissions["$bitmask"]);
}
}
- $bugsys->debug("verdict* on can_perform($bitmask, $productid, $userinfo[userid]) = $verdict");
+ BSApp::debug("verdict* on can_perform($bitmask, $productid, $userinfo[userid]) = $verdict");
return $verdict;
}
if (!is_null($bug["custom$field[fieldid]"]))
{
- $bugsys->debug("not null: $field[fieldid]");
+ BSApp::debug("not null: $field[fieldid]");
$value = $bug["custom$field[fieldid]"];
}
else
}
else
{
- $bugsys->debug('mask 1 processing');
+ BSApp::debug('mask 1 processing');
if (is_null($bug["custom$field[fieldid]"]))
{
- $bugsys->debug("is null: $field[fieldid]");
+ BSApp::debug("is null: $field[fieldid]");
if ($field['type'] == 'select_single')
{
if ($field['usedefault'])
}
else
{
- if ($bugsys->debug)
+ if (BSApp::debug)
{
return "[[INVALID TOPIC: $topic]]";
}
$userinfo = bugdar::$userinfo;
}
- $bugsys->debug("checking permissions for $userinfo[userid] on bug $bug[bugid]");
+ BSApp::debug("checking permissions for $userinfo[userid] on bug $bug[bugid]");
- $bugsys->debug('*** START VERBOSE CHECK ***');
+ BSApp::debug('*** START VERBOSE CHECK ***');
- $bugsys->debug('* !can_perform(canviewbugs, $bug[product], $userinfo) = ' . (int)(!can_perform('canviewbugs', $bug['product'], $userinfo)));
- $bugsys->debug('* $bug[hidden] = ' . (int)$bug['hidden']);
- $bugsys->debug('* $userinfo[userid] (' . $userinfo['userid'] . ') == $bug[userid] (' . $bug['userid'] . ') = ' . (int)($userinfo['userid'] == $bug['userid']));
- $bugsys->debug('* can_perform(canviewownhidden, $bug[product], $userinfo) = ' . (int)(!!can_perform('canviewownhidden', $bug['product'], $userinfo)));
- $bugsys->debug('* can_perform(canviewhidden, $bug[product], $userinfo) = ' . (int)(!!can_perform('canviewhidden', $bug['product'], $userinfo)));
- $bugsys->debug('* !$bug[hidden] = ' . (int)(!$bug['hidden']));
+ BSApp::debug('* !can_perform(canviewbugs, $bug[product], $userinfo) = ' . (int)(!can_perform('canviewbugs', $bug['product'], $userinfo)));
+ BSApp::debug('* $bug[hidden] = ' . (int)$bug['hidden']);
+ BSApp::debug('* $userinfo[userid] (' . $userinfo['userid'] . ') == $bug[userid] (' . $bug['userid'] . ') = ' . (int)($userinfo['userid'] == $bug['userid']));
+ BSApp::debug('* can_perform(canviewownhidden, $bug[product], $userinfo) = ' . (int)(!!can_perform('canviewownhidden', $bug['product'], $userinfo)));
+ BSApp::debug('* can_perform(canviewhidden, $bug[product], $userinfo) = ' . (int)(!!can_perform('canviewhidden', $bug['product'], $userinfo)));
+ BSApp::debug('* !$bug[hidden] = ' . (int)(!$bug['hidden']));
- $bugsys->debug('*** END PERMISSIONS CHECK ***');
+ BSApp::debug('*** END PERMISSIONS CHECK ***');
if
(
)
)
{
- $bugsys->debug('*** DONE WITH REAL CALLS ***');
+ BSApp::debug('*** DONE WITH REAL CALLS ***');
return false;
}
- $bugsys->debug('*** DONE WITH REAL CALLS ***');
+ BSApp::debug('*** DONE WITH REAL CALLS ***');
return true;
}
$comment['postby'] = construct_user_display($comment);
$show['editcomment'] = ((can_perform('caneditownreply', $bug['productid']) AND bugdar::$userinfo['userid'] == $comment['userid']) OR (can_perform('caneditotherreply', $bug['productid']) AND bugdar::$userinfo['userid'] != $comment['userid']));
- $bugsys->debug('can edit own replies: ' . (int)(can_perform('caneditownreply', $bug['productid']) AND bugdar::$userinfo['userid'] == $comment['userid']));
- $bugsys->debug('can edit other replies:' . (int)(can_perform('caneditotherreply', $bug['productid']) AND bugdar::$userinfo['userid'] != $comment['userid']));
- $bugsys->debug('$show[editcomment]: ' . $show['editcomment']);
+ BSApp::debug('can edit own replies: ' . (int)(can_perform('caneditownreply', $bug['productid']) AND bugdar::$userinfo['userid'] == $comment['userid']));
+ BSApp::debug('can edit other replies:' . (int)(can_perform('caneditotherreply', $bug['productid']) AND bugdar::$userinfo['userid'] != $comment['userid']));
+ BSApp::debug('$show[editcomment]: ' . $show['editcomment']);
if (is_array($hilight))
{