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)
Tracking
()
RESOLVED
FIXED
Bugzilla 3.0
People
(Reporter: kbenton, Assigned: LpSolit)
Details
(Whiteboard: [doesn't affect tip])
Attachments
(1 file)
|
888 bytes,
patch
|
mkanat
:
review+
kbenton
:
review+
|
Details | Diff | Splinter Review |
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?
Comment 1•18 years ago
|
||
This is minor, not a blocker.
Severity: normal → minor
Flags: blocking3.0? → blocking3.0-
OS: Windows XP → All
Hardware: PC → All
| Assignee | ||
Updated•18 years ago
|
Assignee: administration → ui
Component: Administration → User Interface
Whiteboard: [doesn't affect tip]
Target Milestone: --- → Bugzilla 3.0
| Assignee | ||
Comment 2•18 years ago
|
||
Trivial fix. CVS tip is not affected as admin.cgi manages this correctly.
| Reporter | ||
Comment 3•18 years ago
|
||
Will review shortly. Thanks LpSolit :-)
Comment 4•18 years ago
|
||
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+
| Reporter | ||
Comment 5•18 years ago
|
||
Comment on attachment 261974 [details] [diff] [review]
patch for 3.0, v1
Looks good to me.
Attachment #261974 -
Flags: review+
| Assignee | ||
Updated•18 years ago
|
Flags: approval3.0+
Flags: approval+
| Assignee | ||
Comment 7•18 years ago
|
||
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.
Description
•