From 75ce06c128689e7a2972ba000ae0194c77eb1abb Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Mon, 5 Sep 2016 10:05:54 +0200 Subject: [PATCH] check if workflow graph may be shown --- views/bootstrap/class.ViewDocument.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/views/bootstrap/class.ViewDocument.php b/views/bootstrap/class.ViewDocument.php index 243cb1129..5ea92d48e 100644 --- a/views/bootstrap/class.ViewDocument.php +++ b/views/bootstrap/class.ViewDocument.php @@ -833,7 +833,10 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style {
"; - echo "
"; + if ($this->check_access('WorkflowGraph')) + echo "
"; + else + echo "
"; $this->contentContainerStart(); if($user->isAdmin()) { if(SeedDMS_Core_DMS::checkIfEqual($workflow->getInitState(), $latestContent->getWorkflowState())) { @@ -1007,11 +1010,13 @@ class SeedDMS_View_ViewDocument extends SeedDMS_Bootstrap_Style { } $this->contentContainerEnd(); echo "
"; - echo "
"; + if ($this->check_access('WorkflowGraph')) { + echo "
"; ?> "; + echo "
"; + } echo "
"; ?>