Commit d8040ea9 authored by Côme Chilliet's avatar Côme Chilliet

🚑 fix(audit) Do not link to opened object

Avoid showing a link to the currently opened object in the audit
 security tab

issue #6010
parent 10f79434
......@@ -33,7 +33,7 @@ class AuditLogAttribute extends OrderedArrayAttribute
protected function getAttributeArrayValue ($key, $event)
{
try {
$author = ['html' => objects::link($event['fdAuditAuthorDN'], 'user')];
$author = ['html' => objects::link($event['fdAuditAuthorDN'], 'user', '', NULL, TRUE, ($event['fdAuditAuthorDN'] != $this->plugin->dn))];
} catch (FusionDirectoryException $e) {
$author = $event['fdAuditAuthorDN'];
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment