mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 07:22:11 +00:00
check access on CheckOutDocument
This commit is contained in:
parent
588d150c39
commit
c2f69ce491
|
@ -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'))
|
||||
|
|
|
@ -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'))
|
||||
|
|
Loading…
Reference in New Issue
Block a user