Closed
Bug 537887
Opened 15 years ago
Closed 15 years ago
The flag setter should be able to unset a flag even if not in the request group
Categories
(Bugzilla :: Attachments & Requests, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.6
People
(Reporter: reed, Assigned: reed)
Details
Attachments
(1 file, 2 obsolete files)
3.02 KB,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
In bug 533397, I requested approval1.9.2 on a patch back when it wasn't under a request group. Now that it has a request group set on the flag, I can no longer unset the flag.
This seems to be a problem in the initial implementation in bug 348518. From bug 348518, comment #3:
"Also, the logic always provides UI for clearing a flag, even if users aren't
authorized to do (i.e. they don't have set flag privileges for flags in the +
and - states or request flag privileges for flags in the ? state). The logic
should only provide UI for clearing a flag when the user is authorized to do
so."
I disagree with this. The description for "Request Group" in editflagtypes.cgi is "if flags of this type are requestable, the group allowed to request them (to allow all users to request these flags, select no group)". Nothing in that means that users should not be able to unset such flags.
This patch allows anybody with editbugs to unset flags that are already set but are restricted to some request group.
Attachment #420039 -
Flags: review?(LpSolit)
![]() |
||
Comment 1•15 years ago
|
||
Comment on attachment 420039 [details] [diff] [review]
patch - v1
No, I don't want to let everybody, even those with editbugs privs, clear flags if they aren't in the request_group. This is to avoid people from abusing them. It's working so by design.
Attachment #420039 -
Flags: review?(LpSolit) → review-
![]() |
||
Comment 2•15 years ago
|
||
The only thing I would accept is to let the one who set/requested a flag to remove it, in the case the grant/request groups changed meanwhile.
Severity: normal → enhancement
Target Milestone: Bugzilla 3.4 → ---
Assignee | ||
Comment 3•15 years ago
|
||
Very well... at least that will allow me to unset the flag. :)
Attachment #420039 -
Attachment is obsolete: true
Attachment #420046 -
Flags: review?(LpSolit)
Assignee | ||
Updated•15 years ago
|
Summary: Can't unset flag I requested because I'm not in the request group → The flag setter should be able to unset a flag even if not in the request group
Target Milestone: --- → Bugzilla 3.6
Assignee | ||
Comment 4•15 years ago
|
||
Comment on attachment 420046 [details] [diff] [review]
patch - v2
I always forget that templates have a code backend that actually does work, too. ;)
Attachment #420046 -
Attachment is obsolete: true
Attachment #420046 -
Flags: review?(LpSolit)
Assignee | ||
Comment 5•15 years ago
|
||
Ok, I think this should work.
Attachment #420057 -
Flags: review?(LpSolit)
![]() |
||
Comment 6•15 years ago
|
||
Comment on attachment 420057 [details] [diff] [review]
patch - v3
r=LpSolit
Attachment #420057 -
Flags: review?(LpSolit) → review+
![]() |
||
Updated•15 years ago
|
Severity: enhancement → minor
Flags: approval3.6+
Flags: approval+
Assignee | ||
Comment 7•15 years ago
|
||
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/trunk/
modified Bugzilla/Flag.pm
modified template/en/default/flag/list.html.tmpl
Committed revision 7000.
Committing to: bzr+ssh://bzr.mozilla.org/bugzilla/3.6/
modified Bugzilla/Flag.pm
modified template/en/default/flag/list.html.tmpl
Committed revision 6978.
Status: ASSIGNED → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•