private function _getSectionCapability($aSectionset)
{
if ($aSectionset['capability']) {
return $aSectionset['capability'];
}
if (0 < $aSectionset['_nested_depth']) {
$_aSectionPath = $aSectionset['_section_path_array'];
array_pop($_aSectionPath);
$_sParentCapability = $this->oUtil->getElement($this->oForm->aSectionsets, array_merge($_aSectionPath, array('capability')));
if ($_sParentCapability) {
return $_sParentCapability;
}
}
return $this->_replyToGetCapabilityForForm($aSectionset['capability'], $aSectionset['page_slug'], $aSectionset['tab_slug']);
}