mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-02-01 14:11:55 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
5b611a425a
|
|
@ -1492,8 +1492,8 @@ $(document).ready(function() {
|
|||
/* Batch operations {{{ */
|
||||
if($settings->_batchOperations && $total)
|
||||
$this->contentHeading(getMLText('batch_operation'));
|
||||
if($totaldocs || $totalfolders) {
|
||||
if(in_array('export', $settings->_batchOperations)) {
|
||||
if(($totaldocs || $totalfolders) && in_array('export', $settings->_batchOperations)) {
|
||||
if($accessobject->check_view_access($this, array('action'=>'export'))) {
|
||||
ob_start();
|
||||
$this->formField(
|
||||
getMLText("include_content"),
|
||||
|
|
@ -1515,6 +1515,7 @@ $(document).ready(function() {
|
|||
/* All other batch operations are only allowed for admins */
|
||||
if($user->isAdmin()) {
|
||||
if($total && in_array('change_owner', $settings->_batchOperations)) {
|
||||
if($accessobject->check_view_access($this, array('action'=>'change_owner'))) {
|
||||
ob_start();
|
||||
$users = $dms->getAllUsers();
|
||||
$options = array();
|
||||
|
|
@ -1540,8 +1541,10 @@ $(document).ready(function() {
|
|||
$content = ob_get_clean();
|
||||
$this->printAccordion(getMLText('batch_change_owner'), $content);
|
||||
}
|
||||
}
|
||||
|
||||
if($totaldocs && in_array('add_reviewer', $settings->_batchOperations)) {
|
||||
if($accessobject->check_view_access($this, array('action'=>'add_reviewer'))) {
|
||||
ob_start();
|
||||
$users = $dms->getAllUsers();
|
||||
$options = array();
|
||||
|
|
@ -1566,8 +1569,10 @@ $(document).ready(function() {
|
|||
$content = ob_get_clean();
|
||||
$this->printAccordion(getMLText('batch_add_reviewer'), $content);
|
||||
}
|
||||
}
|
||||
|
||||
if($totaldocs && in_array('add_approver', $settings->_batchOperations)) {
|
||||
if($accessobject->check_view_access($this, array('action'=>'add_approver'))) {
|
||||
ob_start();
|
||||
$users = $dms->getAllUsers();
|
||||
$options = array();
|
||||
|
|
@ -1592,8 +1597,10 @@ $(document).ready(function() {
|
|||
$content = ob_get_clean();
|
||||
$this->printAccordion(getMLText('batch_add_approver'), $content);
|
||||
}
|
||||
}
|
||||
|
||||
if($totaldocs && in_array('change_category', $settings->_batchOperations)) {
|
||||
if($accessobject->check_view_access($this, array('action'=>'change_category'))) {
|
||||
ob_start();
|
||||
$cats = $dms->getDocumentCategories();
|
||||
if($cats) {
|
||||
|
|
@ -1630,6 +1637,7 @@ $(document).ready(function() {
|
|||
$this->printAccordion(getMLText('batch_change_category'), $content);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// }}}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user