[TYPO3-core] RFC:#1960: t3lib_BEfunc::blindUserNames() does not work sometimes
Georg Ringer
mail at ringerge.org
Fri Mar 5 23:49:23 CET 2010
This is a SVN patch request.
Type: bugfix
Branches: trunk, 4.3, 4.2
Bugtracker references:
http://bugs.typo3.org/view.php?id=1960
Problem:
BE-User records got the field user_group_cached which holds all
usergroups the user belongs to including subgroups and so on.
The problem is that this field does only get updated at one place: The
BE-Module "User Admin" as you can see this by the message "(All cached
group-lists updated.)"
Solution:
Add a new hook for tcemain which listens to changes in be_users and
be_groups. If a be_user record is getting changed, the list of
usergroups of this user is recalculated. If a be_groups record is
getting changed, the list of usergroups of all users is recalculated as
there is no other way to detect which users get effected by this change.
Additional information:
The field is e.g. used in the sysext "Log" and is also a very nice way
for any developer to get the list of usergroups of a user without
calulating it themselves.
regards
Georg from Bugauction at T3BOARD10 (even if this bug was not taken into
account)
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 1960-usergroup_cached.patch
URL: <http://lists.typo3.org/pipermail/typo3-team-core/attachments/20100305/fb9dcf34/attachment.asc>
More information about the TYPO3-team-core
mailing list