]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Patch for bug 276283: Users should be able to cancel their own flag requests; patch...
authorjocuri%softhome.net <>
Fri, 31 Dec 2004 18:45:57 +0000 (18:45 +0000)
committerjocuri%softhome.net <>
Fri, 31 Dec 2004 18:45:57 +0000 (18:45 +0000)
Bugzilla/Flag.pm

index 6661cac5edc4dc10eb2b607f4f21f438552e458d..1ee6ba71c74367ec557857f098402bc7ded43f06 100644 (file)
@@ -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 "-"