From: jocuri%softhome.net <> Date: Fri, 31 Dec 2004 18:45:57 +0000 (+0000) Subject: Patch for bug 276283: Users should be able to cancel their own flag requests; patch... X-Git-Tag: bugzilla-2.19.2~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d19448c365e3b7fd451586c600ae4397d32aa02a;p=thirdparty%2Fbugzilla.git Patch for bug 276283: Users should be able to cancel their own flag requests; patch by me, r=LpSolit (Frederic), a=justdave. --- diff --git a/Bugzilla/Flag.pm b/Bugzilla/Flag.pm index 6661cac5ed..1ee6ba71c7 100644 --- a/Bugzilla/Flag.pm +++ b/Bugzilla/Flag.pm @@ -220,7 +220,7 @@ sub validate { next if ($status eq $flag->{status}); # - User can clear flags set by itself - next if (($status eq "X") && ($user->id eq $flag->{setter})); + next if (($status eq "X") && ($user->id eq $flag->{setter}->id)); # - User in the $grant_gid group can set/clear flags, # including "+" and "-"