From 4a71c65a849127525c54cef9923cce082825b525 Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 10 Oct 2005 19:21:03 +0000 Subject: [PATCH] r528: No longer able to pass $userinfo; always uses $bugsys->userinfo --- includes/functions.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/includes/functions.php b/includes/functions.php index b9df34e..03ec18f 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -73,14 +73,11 @@ function construct_user_display($userinfo, $html = true) // ######################## Start can_perform ######################## // short-hand for bitwise & -function can_perform($bitmask, $userinfo = null, $productid = 0) +function can_perform($bitmask, $productid = 0) { global $bugsys, $_PERMISSION; - if (!$userinfo) - { - $userinfo = $bugsys->userinfo; - } + $userinfo = $bugsys->userinfo; if (!isset($_PERMISSION["$bitmask"])) { -- 2.22.5