Closed Bug 1257662 Opened 8 years ago Closed 8 years ago

Disallow clearing a flag if the flag is set to allow granting by specifc group and changer is not in group

Categories

(bugzilla.mozilla.org :: Bug Creation/Editing, defect)

Production
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: dkl, Assigned: dkl)

References

Details

Attachments

(1 file, 1 obsolete file)

Update the code so that if a flag has been granted/denied and the flag has a specific group that is required to do so, only users in the grant group can clear the flag or put back to requested (?). Flags without a specific grant group would behave normally.

This came about due to users not being able to set sec-bounty? flag anymore since some were cleared that should not have.

dkl
Attached patch 1257662_1.patch (obsolete) — Splinter Review
Attachment #8731896 - Flags: review?(dylan)
Comment on attachment 8731896 [details] [diff] [review]
1257662_1.patch

Review of attachment 8731896 [details] [diff] [review]:
-----------------------------------------------------------------

extensions/BugModal/template/en/default/bug_modal/flags.html.tmpl needs updating too
Attachment #8731896 - Flags: review-
Comment on attachment 8731896 [details] [diff] [review]
1257662_1.patch

Review of attachment 8731896 [details] [diff] [review]:
-----------------------------------------------------------------

No problems yet in the old UI, but glob's right.

r-
Attachment #8731896 - Flags: review?(dylan) → review-
Attached patch 1257662_2.patchSplinter Review
Attachment #8731896 - Attachment is obsolete: true
Attachment #8733005 - Flags: review?(dylan)
Comment on attachment 8733005 [details] [diff] [review]
1257662_2.patch

Review of attachment 8733005 [details] [diff] [review]:
-----------------------------------------------------------------

r=dylan works as described. Will this break any tests? (wishing it was easier to run all the tests against a checkout)
Attachment #8733005 - Flags: review?(dylan) → review+
(In reply to Dylan William Hardison [:dylan] from comment #5)
> Comment on attachment 8733005 [details] [diff] [review]
> 1257662_2.patch
> 
> Review of attachment 8733005 [details] [diff] [review]:
> -----------------------------------------------------------------
> 
> r=dylan works as described. Will this break any tests? (wishing it was
> easier to run all the tests against a checkout)

We'll find out.

To ssh://gitolite3@git.mozilla.org/webtools/bmo/bugzilla.git
   c83c4f7..fc2d539  master -> master

dkl
Status: ASSIGNED → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
See Also: → 349077
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: