Closed Bug 786691 Opened 12 years ago Closed 12 years ago

Do not display the (more flags) link to logged out users as they cannot set any flag

Categories

(Bugzilla :: User Interface, defect)

4.3.2
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 4.4

People

(Reporter: LpSolit, Assigned: dkl)

References

Details

(Keywords: regression)

Attachments

(1 file, 1 obsolete file)

While browsing Bugzilla as a logged out user, I realized that the (more flags) link was displayed in bug reports. But as I cannot edit nor set any flag, clicking on it has no effect. The link simply disappears. This is confusing. We should have a [% IF user.id %] somewhere in the template to only display this link if the user is logged in.
Assignee: ui → dkl
Status: NEW → ASSIGNED
Attachment #656490 - Flags: review?(LpSolit)
Comment on attachment 656490 [details] [diff] [review] Patch to hide more/set flags links for logged out users (v1) >- [% IF show_more_flags %] >+ [% IF show_more_flags && user.id %] This is not the right place to fix the code. The JS code won't be able to access bz_flags_more_container. You should rather check that the user is logged in before setting show_more_flags = 1. This way, you will fix both places at once.
Attachment #656490 - Flags: review?(LpSolit) → review-
Depends on: 424215
Attachment #656490 - Attachment is obsolete: true
Attachment #656891 - Flags: review?(LpSolit)
Comment on attachment 656891 [details] [diff] [review] Patch to hide more/set flags links for logged out users (v2) r=LpSolit
Attachment #656891 - Flags: review?(LpSolit) → review+
Flags: approval+
Committing to: bzr+ssh://dlawrence%40mozilla.com@bzr.mozilla.org/bugzilla/trunk modified template/en/default/bug/edit.html.tmpl Committed revision 8368.
Status: ASSIGNED → RESOLVED
Closed: 12 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: