Closed
Bug 786691
Opened 13 years ago
Closed 13 years ago
Do not display the (more flags) link to logged out users as they cannot set any flag
Categories
(Bugzilla :: User Interface, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 4.4
People
(Reporter: LpSolit, Assigned: dkl)
References
Details
(Keywords: regression)
Attachments
(1 file, 1 obsolete file)
|
595 bytes,
patch
|
LpSolit
:
review+
|
Details | Diff | Splinter Review |
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 | ||
Comment 1•13 years ago
|
||
| Reporter | ||
Comment 2•13 years ago
|
||
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-
| Assignee | ||
Comment 3•13 years ago
|
||
Attachment #656490 -
Attachment is obsolete: true
Attachment #656891 -
Flags: review?(LpSolit)
| Reporter | ||
Comment 4•13 years ago
|
||
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+
| Reporter | ||
Updated•13 years ago
|
Flags: approval+
| Assignee | ||
Comment 5•13 years ago
|
||
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: 13 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•