check access on WorkflowGraph

This commit is contained in:
Uwe Steinmann 2021-08-20 11:00:51 +02:00
parent 6a8382747b
commit 0f786a73b6

View File

@ -66,6 +66,7 @@ $(document).ready(function() {
$dms = $this->params['dms'];
$user = $this->params['user'];
$folder = $this->params['folder'];
$accessobject = $this->params['accessobject'];
$document = $this->params['document'];
$transition = $this->params['transition'];
@ -125,7 +126,13 @@ $(document).ready(function() {
$this->columnStart(8);
?>
<div id="workflowgraph">
<?php
if($accessobject->check_view_access('WorkflowGraph')) {
?>
<iframe src="out.WorkflowGraph.php?workflow=<?php echo $workflow->getID(); ?>&transitions[]=<?php echo $transition->getID(); ?>&documentid=<?php echo $document->getID(); ?>" width="100%" height="600" style="border: 1px solid #AAA;"></iframe>
<?php
}
?>
</div>
<?php
$this->columnEnd();