Change comment caching to object level instead of class level to prevent revealing restricted comments

This commit is contained in:
Nathan Gray 2013-08-09 16:23:50 +00:00
parent c8aa72039f
commit fefdb42340

View File

@ -693,6 +693,7 @@ abstract class bo_tracking
if (is_numeric($user_or_lang)) // user --> read everything from his prefs
{
$GLOBALS['egw_info']['user']['account_id'] = $user_or_lang;
$GLOBALS['egw']->preferences->__construct($user_or_lang);
$GLOBALS['egw_info']['user']['preferences'] = $GLOBALS['egw']->preferences->read_repository(false); // no session prefs!