From 4ec7933a320e773cc30959c2f84382b7022f15ef Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 10 Oct 2005 21:45:31 +0000 Subject: [PATCH] r530: Only check the product permissions in can_perform() if they exist --- includes/functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/functions.php b/includes/functions.php index 8901632..a7c83f8 100755 --- a/includes/functions.php +++ b/includes/functions.php @@ -84,7 +84,7 @@ function can_perform($bitmask, $productid = 0) trigger_error('Invalid bitmask "' . $bitmask . '" specified for can_perform() [includes/functions.php]', E_USER_WARNING); } - if ($productid) + if ($productid AND isset($bugsys->datastore['permission']["$userinfo[usergroupid]"]["$productid"])) { $inspecific = array('cansearch', 'canbeassignedto', 'canadminpanel', 'canadminbugs', 'canadminfields', 'canadminversions', 'canadminusers', 'canadmingroups', 'canadmintools'); -- 2.22.5