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)

3.4.4
defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 3.6

People

(Reporter: reed, Assigned: reed)

Details

Attachments

(1 file, 2 obsolete files)

Attached patch patch - v1 (obsolete) — 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)
Depends on: 348518
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-
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 → ---
No longer depends on: 348518
Attached patch patch - v2 (obsolete) — Splinter Review
Very well... at least that will allow me to unset the flag. :)
Attachment #420039 - Attachment is obsolete: true
Attachment #420046 - Flags: review?(LpSolit)
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
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)
Attached patch patch - v3Splinter Review
Ok, I think this should work.
Attachment #420057 - Flags: review?(LpSolit)
Comment on attachment 420057 [details] [diff] [review] patch - v3 r=LpSolit
Attachment #420057 - Flags: review?(LpSolit) → review+
Severity: enhancement → minor
Flags: approval3.6+
Flags: approval+
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.

Attachment

General

Created:
Updated:
Size: