dsp/PHProjekt — comment on commit 0311f029e3bf19f7f8acfba31bac8d85ebeeedda
File:  line 0
By voidus:

Looks like this misses some places where current_user is set. It still appears in the client, too.

part of `ack currentUser -i --php phprojekt/application phprojekt/library`:
phprojekt/library/Phprojekt/Item/Rights.php
173: $currentUserId = (int) Phprojekt_Auth_Proxy::getEffectiveUserId();
175: $access = $this->getItemRight($moduleId, $itemId, $currentUserId);
180: $values['currentUser']['moduleId'] = (int) $moduleId;
181: $values['currentUser']['itemId'] = (int) $itemId;
182: $values['currentUser']['userId'] = $currentUserId;
184: $values['currentUser'] = array_merge($values['currentUser'], $access);
200: $currentUserId = (int) Phprojekt_Auth_Proxy::getEffectiveUserId();
203: $currentUserId, implode(",", $ids));
209: $values[$id]['currentUser']['moduleId'] = (int) $moduleId;
210: $values[$id]['currentUser']['itemId'] = (int) $id;
211: $values[$id]['currentUser']['userId'] = $currentUserId;
213: $values[$id]['currentUser'] = array_merge($values[$id]['currentUser'], $access);
218: $values[$row['item_id']]['currentUser'] = array_merge($values[$row['item_id']]['currentUser'], $access);
240: $currentUserId = (int) Phprojekt_Auth_Proxy::getEffectiveUserId();