diff --git a/views/bootstrap/class.Bootstrap.php b/views/bootstrap/class.Bootstrap.php index 0ba8454f6..9b1f25063 100644 --- a/views/bootstrap/class.Bootstrap.php +++ b/views/bootstrap/class.Bootstrap.php @@ -853,7 +853,9 @@ background-image: linear-gradient(to bottom, #882222, #111111);; } } else { if($this->params['checkoutdir']) { - $menuitems['checkout_document'] = array('link'=>$this->params['settings']->_httpRoot."op/op.CheckOutDocument".$docid, 'label'=>getMLText('checkout_document')); + if ($accessobject->check_controller_access('CheckOutDocument')) { + $menuitems['checkout_document'] = array('link'=>$this->params['settings']->_httpRoot."op/op.CheckOutDocument".$docid, 'label'=>getMLText('checkout_document')); + } } } if($accessobject->check_controller_access('EditDocument')) diff --git a/views/bootstrap4/class.Bootstrap4.php b/views/bootstrap4/class.Bootstrap4.php index 3c555c257..c6114a60f 100644 --- a/views/bootstrap4/class.Bootstrap4.php +++ b/views/bootstrap4/class.Bootstrap4.php @@ -779,8 +779,10 @@ background-image: linear-gradient(to bottom, #882222, #111111);; $menuitems['checkin_document'] = array('link'=>$this->params['settings']->_httpRoot."out/out.CheckInDocument".$docid, 'label'=>getMLText('checkin_document')); } } else { - if($this->params['checkoutdir']) { - $menuitems['checkout_document'] = array('link'=>$this->params['settings']->_httpRoot."op/op.CheckOutDocument".$docid, 'label'=>getMLText('checkout_document')); + if ($this->params['checkoutdir']) { + if ($accessobject->check_controller_access('CheckOutDocument')) { + $menuitems['checkout_document'] = array('link'=>$this->params['settings']->_httpRoot."op/op.CheckOutDocument".$docid, 'label'=>getMLText('checkout_document')); + } } } if($accessobject->check_controller_access('EditDocument'))