mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-10 13:42:41 +00:00
add parameter to turn off/on advanced acl
This commit is contained in:
parent
42e168a1fc
commit
f84c8eedd2
|
@ -139,6 +139,8 @@ class Settings { /* {{{ */
|
|||
var $_enableDuplicateDocNames = true;
|
||||
// override mimetype set by browser when uploading a file
|
||||
var $_overrideMimeType = false;
|
||||
// advanced access control lists
|
||||
var $_advancedAcl = false;
|
||||
// enable/disable notification when added as a reviewer/approver
|
||||
var $_enableNotificationAppRev = true;
|
||||
// enable/disable notification of users/group who need to take action for
|
||||
|
@ -541,6 +543,7 @@ class Settings { /* {{{ */
|
|||
$this->_enableVersionModification = Settings::boolval($tab["enableVersionModification"]);
|
||||
$this->_enableDuplicateDocNames = Settings::boolval($tab["enableDuplicateDocNames"]);
|
||||
$this->_overrideMimeType = Settings::boolval($tab["overrideMimeType"]);
|
||||
$this->_advancedAcl = Settings::boolval($tab["advancedAcl"]);
|
||||
|
||||
// XML Path: /configuration/advanced/notification
|
||||
$node = $xml->xpath('/configuration/advanced/notification');
|
||||
|
@ -843,6 +846,7 @@ class Settings { /* {{{ */
|
|||
$this->setXMLAttributValue($node, "enableVersionModification", $this->_enableVersionModification);
|
||||
$this->setXMLAttributValue($node, "enableDuplicateDocNames", $this->_enableDuplicateDocNames);
|
||||
$this->setXMLAttributValue($node, "overrideMimeType", $this->_overrideMimeType);
|
||||
$this->setXMLAttributValue($node, "advancedAcl", $this->_advancedAcl);
|
||||
|
||||
// XML Path: /configuration/advanced/notification
|
||||
$node = $this->getXMLNode($xml, '/configuration/advanced', 'notification');
|
||||
|
|
|
@ -166,6 +166,7 @@ if ($action == "saveSettings")
|
|||
$settings->_enableVersionModification = getBoolValue("enableVersionModification");
|
||||
$settings->_enableDuplicateDocNames = getBoolValue("enableDuplicateDocNames");
|
||||
$settings->_overrideMimeType = getBoolValue("overrideMimeType");
|
||||
$settings->_advancedAcl = getBoolValue("advancedAcl");
|
||||
|
||||
// SETTINGS - ADVANCED - NOTIFICATION
|
||||
$settings->_enableOwnerNotification = getBoolValue("enableOwnerNotification");
|
||||
|
|
|
@ -629,6 +629,10 @@ if(!is_writeable($settings->_configFilePath)) {
|
|||
<td><?php printMLText("settings_overrideMimeType");?>:</td>
|
||||
<td><input name="overrideMimeType" type="checkbox" <?php if ($settings->_overrideMimeType) echo "checked" ?> /></td>
|
||||
</tr>
|
||||
<tr title="<?php printMLText("settings_advancedAcl_desc");?>">
|
||||
<td><?php printMLText("settings_advancedAcl");?>:</td>
|
||||
<td><input name="advancedAcl" type="checkbox" <?php if ($settings->_advancedAcl) echo "checked" ?> /></td>
|
||||
</tr>
|
||||
|
||||
<!--
|
||||
-- SETTINGS - ADVANCED - NOTIFICATION
|
||||
|
|
Loading…
Reference in New Issue
Block a user