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)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.20
People
(Reporter: goobix, Assigned: goobix)
References
Details
Attachments
(1 file)
|
684 bytes,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
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 | ||
Updated•21 years ago
|
Assignee: myk → vladd
Severity: normal → major
Flags: blocking2.20?
Target Milestone: --- → Bugzilla 2.20
| Assignee | ||
Comment 1•21 years ago
|
||
| Assignee | ||
Updated•21 years ago
|
Attachment #169756 -
Flags: review?
| Assignee | ||
Updated•21 years ago
|
Status: NEW → ASSIGNED
Comment 2•21 years ago
|
||
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 3•21 years ago
|
||
Comment on attachment 169756 [details] [diff] [review]
patch v1
justdave said I could review this simple patch.
r=LpSolit
Attachment #169756 -
Flags: review? → review+
Updated•21 years ago
|
Flags: blocking2.20?
Flags: blocking2.20+
Flags: approval?
Flags: approval+
| Assignee | ||
Comment 5•21 years ago
|
||
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
Comment 6•21 years ago
|
||
*** Bug 276917 has been marked as a duplicate of this bug. ***
Updated•21 years ago
|
Whiteboard: [applied to b.m.o]
Comment 7•20 years ago
|
||
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]
Updated•13 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•