1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Fixed error thrown when owner existed but the creator did not

Added test to cover.
For #2687
This commit is contained in:
Dan Brown
2021-04-20 21:03:44 +01:00
parent b3c47649b4
commit 20528a2442
2 changed files with 17 additions and 1 deletions

View File

@@ -14,7 +14,7 @@
</div>
@endif
@if ($entity->ownedBy && $entity->ownedBy->id !== $entity->createdBy->id)
@if ($entity->ownedBy && $entity->owned_by !== $entity->created_by)
<div>
@icon('user'){!! trans('entities.meta_owned_name', [
'user' => "<a href='{$entity->ownedBy->getProfileUrl()}'>".e($entity->ownedBy->name). "</a>"