[TYPO3-dev] I don't understand the documentation for creating hooks - maybe partially solved
tapio
tapio.markula at dnainternet.net
Thu Mar 9 16:17:38 CET 2006
Rico Moorman wrote:
> I think a hook on the suggested place could be really helpful or maybe
> also inside the function recordEditAccessInternals()
>
> Did you get already some response about it tapio?
No but
if($recordAccess==1) // for class.ux_sc_db_layout.php
{
$_procObj = array();
if(is_array($TYPO3_CONF_VARS['EXTCONF']['tm_contentaccess']['hasAccess']))
{
foreach
($TYPO3_CONF_VARS['EXTCONF']['tm_contentaccess']['hasAccess'] as
$hasAccessControl) {
$_procObj = &t3lib_div::getUserObj($hasAccessControl);
if($_procObj==0)
$recordAccess=0;
}
}
}
and
if($hasAccess==1) // class.ux_sc_alt_doc.php
{
$_procObj = array();
if(is_array($TYPO3_CONF_VARS['EXTCONF']['tm_contentaccess']['hasAccess']))
{
foreach
($TYPO3_CONF_VARS['EXTCONF']['tm_contentaccess']['hasAccess'] as
$hasAccessControl) {
$_procObj = &t3lib_div::getUserObj($hasAccessControl);
if($_procObj==0)
$hasAccess=0;
}
}
}
Should be correct hooks.
More information about the TYPO3-dev
mailing list