as the pricipal of current user is influenced by GroupDAV prefs, we have to include them in the etag

This commit is contained in:
Ralf Becker 2010-10-20 12:07:10 +00:00
parent 449a355f2a
commit 261b4521c8

View File

@ -530,6 +530,9 @@ class groupdav_principals extends groupdav_handler
{
$account = $this->read($account);
}
return 'EGw-'.$account['account_id'].':'.md5(serialize($account)).'-wGE';
return 'EGw-'.$account['account_id'].':'.md5(serialize($account)).
// as the pricipal of current user is influenced by GroupDAV prefs, we have to include them in the etag
($account['account_id'] == $GLOBALS['egw_info']['user']['account_id'] ?
':'.md5(serialize($GLOBALS['egw_info']['user']['preferences']['groupdav'])) : '').'-wGE';
}
}