From b1c50198866d4df3ed84ae001358972246e75a5a Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Mon, 10 Oct 2005 22:30:42 +0000 Subject: [PATCH] r534: Fixing permissions to match the new setup --- editreport.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/editreport.php b/editreport.php index edd85e7..bd4dca7 100644 --- a/editreport.php +++ b/editreport.php @@ -52,7 +52,7 @@ if ($_POST['do'] == 'update') { // ------------------------------------------------------------------- // process comment stuff - if (!(((can_perform('caneditown', $bug['productid']) AND $bugsys->userinfo['userid'] == $comment['userid']) OR can_perform('caneditother', $bug['productid'])) AND can_perform('caneditownreply', $bug['productid']))) + if (!((can_perform('caneditown', $bug['productid']) AND $bugsys->userinfo['userid'] == $bug['userid']) OR (can_perform('caneditother', $bug['productid']) AND $bugsys->userinfo['userid'] != $bug['userid']))) { $hascomment = (!empty($bugsys->in['comment'])) ? true : false; @@ -103,10 +103,7 @@ if ($_POST['do'] == 'update') $log->log(); } } - } - - if (!(((can_perform('caneditown', $bug['productid']) AND $bugsys->userinfo['userid'] == $comment['userid']) OR can_perform('caneditother', $bug['productid'])) AND can_perform('caneditownreply', $bug['productid']))) - { + $message->redirect($lang->string('Your reply has been added to the comment list.'), "showreport.php?bugid=$bug[bugid]"); } -- 2.22.5