[TYPO3-dev] how to hook into tcemain within core files

Dmitry Dulepov dmitry.dulepov+t3ml at gmail.com
Mon Feb 8 09:09:51 CET 2010


Hi!

On 2010-02-08 08:55:35 +0200, Georg Ringer said:
> I stumbled over the bug #1960: t3lib_BEfunc::blindUserNames() does not
> work sometimes [1] while working on the extension taskcenter_recent but
> the bug also occurs within the sysext belog.
> 
> The Problem in short: The field user_group_cached in fe_users holds all
> groups a user belongs to (including sbgroups, ...). After changing the
> groups of a user, the field doesn't get changed and therefore the value
> is of course wrong.
> 
> The only change will happen inside the module beuser. You probably know
> the info text "(All cached group-lists updated.)"
> 
> Now my question: Some lines code which you can also get from the last
> comment inside the bugtracker entry resolve this problem but I don't
> know how to include those lines within the core. Is there an example how
> to use afterDatabaseOperations inside the core as I don't can bind this
> to a specific sysext like beuser or belog

Core should not hook in my opinion. Instead, a new check inside TCEmain 
should be created.

-- 
Dmitry Dulepov
TYPO3 expert / TYPO3 core team member / TYPO3 security team member 
Read more @ http://dmitry-dulepov.com/





More information about the TYPO3-dev mailing list