From 9f49460ee9c0095540198c045b69ac0830d615ae Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 21 Jul 2020 16:07:51 +0200 Subject: [PATCH] show container around add attachment button only if button is visible --- views/bootstrap/class.ViewDocument.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index b3df666a6..8c4264208 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -1654,14 +1654,13 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { } else $this->infoMsg(getMLText("no_attached_files")); - $this->contentContainerStart(); - if($accessobject->check_controller_access('AddFile')) { + $this->contentContainerStart(); if ($document->getAccessMode($user) >= M_READWRITE){ print $this->html_link('AddFile', array('documentid'=>$documentid), array('class'=>'btn btn-primary'), getMLText("add"), false, true)."\n"; } + $this->contentContainerEnd(); } - $this->contentContainerEnd(); ?>