Closed Bug 276283 Opened 21 years ago Closed 21 years ago

Comparing number with hash leaves users unable to cancel their flag requests

Categories

(Bugzilla :: Creating/Changing Bugs, defect)

2.19.1
defect
Not set
major

Tracking

()

RESOLVED FIXED
Bugzilla 2.20

People

(Reporter: goobix, Assigned: goobix)

References

Details

Attachments

(1 file)

Users can't cancel their flag requests if granting is restricted to a specific group because the code in Flag.pm checking for the right permissions is bogus: next if (($status eq "X") && ($user->id eq $flag->{setter})); should be: next if (($status eq "X") && ($user->id eq $flag->{setter}->id)); Problem reproduced on b.m.o., landfill and localhost install. The replacement fixes the issue on my localhost install.
Assignee: myk → vladd
Severity: normal → major
Flags: blocking2.20?
Target Milestone: --- → Bugzilla 2.20
Attached patch patch v1Splinter Review
Attachment #169756 - Flags: review?
Status: NEW → ASSIGNED
Sorry, you are right! It should be $flag->{setter}->id . I missed that point when testing my patch in bug 180879. I hope this is the first and last bug about that topic. :( Adding myk to the CC list as he reviewed my patch.
Comment on attachment 169756 [details] [diff] [review] patch v1 justdave said I could review this simple patch. r=LpSolit
Attachment #169756 - Flags: review? → review+
This is a really annoying problem which should land asap.
Flags: approval?
Flags: blocking2.20?
Flags: blocking2.20+
Flags: approval?
Flags: approval+
Checking in Bugzilla/Flag.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Flag.pm,v <-- Flag.pm new revision: 1.25; previous revision: 1.24 done
Status: ASSIGNED → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
*** Bug 276917 has been marked as a duplicate of this bug. ***
Whiteboard: [applied to b.m.o]
the patch for this on b.m.o was effectively replaced by the patch to bug 288603, which changes the same line. (removing applied to b.m.o tag)
Whiteboard: [applied to b.m.o]
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: