From 1df09242a0faa24d812b4c50c6024532ebde0846 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Wed, 9 Nov 2016 19:54:00 +0100 Subject: [PATCH] don't show preview if ViewOnline isn't allowed, more access checks --- views/bootstrap/class.ViewDocument.php | 80 +++++++++++++++----------- 1 file changed, 46 insertions(+), 34 deletions(-) diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 18da0550f..25eb94581 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -439,7 +439,9 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { if(is_string($txt)) echo $txt; $this->contentContainerEnd(); - $this->preview(); + if($accessop->check_controller_access('ViewOnline', array('action'=>'run'))) { + $this->preview(); + } ?>
@@ -580,51 +582,61 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { } print ""; print "