show logs to owner of document

This commit is contained in:
Uwe Steinmann 2017-07-31 15:37:05 +02:00
parent b5a7f41a8e
commit 547eb06725

View File

@ -932,7 +932,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
print "</table>\n"; print "</table>\n";
$this->contentContainerEnd(); $this->contentContainerEnd();
if($user->isAdmin()) { if($user->isAdmin() || $user->getId() == $document->getOwner()->getId()) {
?> ?>
<div class="row-fluid"> <div class="row-fluid">
<?php <?php
@ -1384,7 +1384,7 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
</table> </table>
<?php <?php
$this->contentContainerEnd(); $this->contentContainerEnd();
if($user->isAdmin()) { if($user->isAdmin() || $user->getId() == $document->getOwner()->getId()) {
?> ?>
<div class="row-fluid"> <div class="row-fluid">
<div class="span12"> <div class="span12">