Closed Bug 377825 Opened 18 years ago Closed 18 years ago

Users with editcomponents for a product don't see hyperlink to editproducts.cgi

Categories

(Bugzilla :: User Interface, defect)

defect
Not set
minor

Tracking

()

RESOLVED FIXED
Bugzilla 3.0

People

(Reporter: kbenton, Assigned: LpSolit)

Details

(Whiteboard: [doesn't affect tip])

Attachments

(1 file)

Users with editcomponents turned on for a specific product don't get a link in template/en/default/global/useful-links.html.tmpl (near line 144). I wonder if user.get_products_by_permission("editcomponents").size is working? In my case, I just set up BZ, added a pair of groups Test1 and Test1Admin, then went into the default test product, added those two groups to the product, with Test1Admin having editcomponents capability, both having editbugs and confirmbugs. After that, I created bztest as a user, adding it to both Test1 and Test1Admin. Then, I impersonated the user and didn't see the Products hyperlink. I followed up by logging out, then logging back in as the test user, and got the same results. When I checked permissions for bztest, it showed it was a member of both Test1 and Test1Admin. TestProduct shows group access controls with: Test1Admin: NA/NA, editcomponents, canconfirm, editbugs / Test1: NA/NA, canconfirm, editbugs
Flags: blocking3.0?
This is minor, not a blocker.
Severity: normal → minor
Flags: blocking3.0? → blocking3.0-
OS: Windows XP → All
Hardware: PC → All
Assignee: administration → ui
Component: Administration → User Interface
Whiteboard: [doesn't affect tip]
Target Milestone: --- → Bugzilla 3.0
Trivial fix. CVS tip is not affected as admin.cgi manages this correctly.
Assignee: ui → LpSolit
Status: NEW → ASSIGNED
Attachment #261974 - Flags: review?(kevin.benton)
Will review shortly. Thanks LpSolit :-)
Comment on attachment 261974 [details] [diff] [review] patch for 3.0, v1 I'm slightly concerned because there's no cache for get_products_by_permission. But this does look correct to me.
Attachment #261974 - Flags: review?(kevin.benton) → review+
Comment on attachment 261974 [details] [diff] [review] patch for 3.0, v1 Looks good to me.
Attachment #261974 - Flags: review+
Flags: approval3.0+
Flags: approval+
Err... tip is not affected
Flags: approval+ → approval-
Checking in template/en/default/global/useful-links.html.tmpl; /cvsroot/mozilla/webtools/bugzilla/template/en/default/global/useful-links.html.tmpl,v <-- useful-links.html.tmpl new revision: 1.56.2.1; previous revision: 1.56 done
Status: ASSIGNED → RESOLVED
Closed: 18 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: