...
- add the
section
parameter tom
unit query string definition (http://qa.in-portal.org/diffusion/INP/browse/branches%252F5.2.x/in-portal/branches/5.2.x/core/units/general/general_config.php;16154$22-29) - 0.2h - always pass "
m_section
" url parameter (will be encorporated included intoenv
url parameter), when building urls in the Admin Console tree (see http://qa.in-portal.org/diffusion/INP/browse/branches%252F5.2.x/in-portal/branches/5.2.x/core/units/helpers/sections_helper.php;16154$245) - 0.3h - don't use
perm_prefix
key to replace non-primary unit section with primary one (e.g.in-portal:admins
within-portal:user_list
) when saving/showing group permissions (see http://qa.in-portal.org/D52 for code places, but the changed code needs to be removed at all to use$section_name
as-as) - 0.5h - write an upgrade script, that will copy permission grants for all non-primary unit sections from unit's primary section (only mentioned section uses
perm_prefix
in core code, so it's a simple SQL query) - 0.3h - when declaring section use
SectionPrefix
key for specifying associated unit instead ofperm_prefix
key (no coding required for that) - 0.2h - in places, where the
perm_prefix
setting from section definition is used we need to useSectionPrefix
(always present) instead: - 0.5h- the
kEvent::getSection
method - the
kSectionsHelper::getPermSection
method
- the
- improve the
kSectionsHelper::getPermSection
method by: - 0.5h- adding optional
$prefix
parameter - when
$prefix
parameter is given we:- look for "
m_section
" request variable - if found and is declared in the unit, which prefix is given, then use it as permission section
- look for "
- invoke current code (use section's unit main unit permission section name) when:
$prefix
parameter is not given- the
m_section
request variable is empty - section given in
m_section
request variable is defined in another unit - section given in
m_section
request variable not defined at all
- adding optional
- in places, where
kSectionsHelper::getPermSection
method is called we need to provide the$prefix
parameter:- 1h- the "
adm::SectionInfo"
tag (from thecombined_header
block) - the the "
adm::PrintSections"
tag (from Admin Tree) - the the "
adm::ListTabs"
tag (grids with tabs, e.g. discounts)the - in the "
\kSectionsHelper::sectionVisible
" method (called from "adm::DrawTree
" tag, "adm::PrintSections
" tag, "kSectionsHelper::getFirstChild
" method) - the "
adm::DrawTree"
tag (from group permission editing screen) - indirect call - the the "
kSectionsHelper::getFirstChild"
method (from from "adm::PrintSection"
tag) - indirect call
- the "
Quote: 3.5h*1.4 (doing) + 1.5h (quoting) = 6.5h
Related Tasks
Jira Legacy | ||||||
---|---|---|---|---|---|---|
|