Bug 443561
Summary: | FEAT: Match the new db schema of bz3.0 [#5 TABLE group_group_map] | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | [Retired] Red Hat Hardware Certification Program | Reporter: | XINSUN <xisun> | ||||||||
Component: | Hardware Catalog | Assignee: | XINSUN <xisun> | ||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Yu Shao <yshao> | ||||||||
Severity: | medium | Docs Contact: | |||||||||
Priority: | medium | ||||||||||
Version: | 5 | CC: | bxu, dkl, efeng, kbaker, nelhawar, rlandry, tfu, xiqin, ykun, yshao | ||||||||
Target Milestone: | --- | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | |||||||||||
Fixed In Version: | 3.2rh-20080801.1 | Doc Type: | Bug Fix | ||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2008-08-04 17:56:31 UTC | Type: | --- | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | |||||||||||
Bug Blocks: | 443456 | ||||||||||
Attachments: |
|
Description
XINSUN
2008-04-22 08:25:09 UTC
Created attachment 303736 [details]
The patch to fix : 5.1 Delete the field isbless from table group_group_map
derive_groups () is used in the token.cgi, but seems the catalog didn't use
this cgi, so remove it simply.
UserCanBlessGroup() is used in the editusers.cgi and userprefs.cgi which didn't
exist in catalog, so remove it simply.
can_bless() is used in the template file :
"template/en/default/global/useful-links.html.tmpl" :
[% ' | <a href="editusers.cgi">Users</a>' IF user.groups.editusers ||
user.can_bless %]
but it is not used in the catalog, so remove it simply.
Best Regards!
Nicho
Hi nicho , Patch looks good,, maybe it is a good idea also to remove code that calls the 2 subroutines that you removed from User.pm derive_groups() and can_bless(), as you mentioned before it is in the following places for your quick reference: ./token.cgi:257: $user->derive_groups; ./token.cgi:300: $user->derive_groups; ./template/en/default/global/useful-links.html.tmpl:75: || user.can_bless %] Cheers, Noura Created attachment 304097 [details]
Patch improve:
Remove below:
./token.cgi:257: $user->derive_groups;
./token.cgi:300: $user->derive_groups;
./template/en/default/global/useful-links.html.tmpl:75:
|| user.can_bless %]
Pls review
Nicho
Created attachment 304133 [details]
Patch Improve:
Patch looks good, Thanks Nicho Noura Please commit this change to CVS and set the status to MODIFIED. tested and run good |