diff --git a/lib/zin/wg/history/v1.php b/lib/zin/wg/history/v1.php index ade13d2d47..91fb7224ce 100644 --- a/lib/zin/wg/history/v1.php +++ b/lib/zin/wg/history/v1.php @@ -45,7 +45,7 @@ class history extends wg && !empty($actions) && end($actions) == $action && trim($action->comment) !== '' && str_contains(',view,objectlibs,viewcard,', ",$methodName,") - && $action->actor == $app->user->account + && $action->account == $app->user->account && common::hasPriv('action', 'editComment'); } @@ -173,6 +173,7 @@ class history extends wg $i = 0; foreach($actions as $action) { + $action->account = $action->actor; if($action->action === 'assigned' || $action->action === 'toaudit') $action->extra = zget($users, $action->extra); $action->actor = zget($users, $action->actor); if(str_contains($action->actor, ':')) $action->actor = substr($action->actor, strpos($action->actor, ':') + 1);