From c467f84f4a4c7ec941c143499744416e8ffce53a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Fri, 23 Dec 2005 01:42:52 +0000 Subject: [PATCH] r670: Okay... guests don't count as users --- showreport.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/showreport.php b/showreport.php index f0ebe9e..776e38e 100644 --- a/showreport.php +++ b/showreport.php @@ -67,7 +67,7 @@ if (!can_perform('canviewbugs', $bug['productid'])) $message->error_permission(); } -$show['edit'] = ((can_perform('caneditown', $bug['productid']) AND $bugsys->userinfo['userid'] == $bug['userid']) OR (can_perform('caneditother', $bug['productid']) AND $bugsys->userinfo['userid'] != $bug['userid'])); +$show['edit'] = ((can_perform('caneditown', $bug['productid']) AND $bugsys->userinfo['userid'] == $bug['userid'] AND $bug['userid'] != 0) OR (can_perform('caneditother', $bug['productid']) AND $bugsys->userinfo['userid'] != $bug['userid'])); if (!is_array($bug)) { -- 2.43.5