mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-08 20:46:05 +00:00
check access on CheckOutDocument
This commit is contained in:
parent
588d150c39
commit
c2f69ce491
|
@ -853,9 +853,11 @@ background-image: linear-gradient(to bottom, #882222, #111111);;
|
|||
}
|
||||
} else {
|
||||
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'))
|
||||
$menuitems['edit_document_props'] = array('link'=>$this->params['settings']->_httpRoot."out/out.EditDocument".$docid , 'label'=>getMLText('edit_document_props'));
|
||||
if($accessobject->check_controller_access('MoveDocument'))
|
||||
|
|
|
@ -779,10 +779,12 @@ 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']) {
|
||||
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'))
|
||||
$menuitems['edit_document_props'] = array('link'=>$this->params['settings']->_httpRoot."out/out.EditDocument".$docid , 'label'=>getMLText('edit_document_props'));
|
||||
if($accessobject->check_controller_access('MoveDocument'))
|
||||
|
|
Loading…
Reference in New Issue
Block a user