mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 15:14:58 +00:00
Merge branch 'seeddms-5.1.x' into seeddms-6.0.x
This commit is contained in:
commit
83e42948ee
|
@ -119,6 +119,7 @@
|
|||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.1.14
|
||||
--------------------------------------------------------------------------------
|
||||
- allow mimetype to specify documents which can be edited online
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
Changes in version 5.1.13
|
||||
|
|
|
@ -68,7 +68,7 @@ class SeedDMS_AccessOperation {
|
|||
$version = $document->getContentByVersion($vno);
|
||||
else
|
||||
$version = $document->getLatestContent();
|
||||
if (!isset($this->settings->_editOnlineFileTypes) || !is_array($this->settings->_editOnlineFileTypes) || !in_array(strtolower($version->getFileType()), $this->settings->_editOnlineFileTypes))
|
||||
if (!isset($this->settings->_editOnlineFileTypes) || !is_array($this->settings->_editOnlineFileTypes) || !in_array(strtolower($version->getFileType()), $this->settings->_editOnlineFileTypes) || !in_array(strtolower($version->getMimeType()), $this->settings->_editOnlineFileTypes))
|
||||
return false;
|
||||
if ($document->getAccessMode($this->user) == M_ALL || $this->user->isAdmin()) {
|
||||
return true;
|
||||
|
|
|
@ -123,6 +123,9 @@ $this->contentHeading(getMLText("content"));
|
|||
echo htmlspecialchars(file_get_contents($dms->contentDir . $version->getPath()), ENT_SUBSTITUTE);
|
||||
?>
|
||||
</textarea>
|
||||
<?php
|
||||
echo $this->warningMsg(getMLText('edit_online_warning'));
|
||||
?>
|
||||
<button id="update" type="submit" class="btn btn-primary"><i class="icon-save"></i> <?php printMLText("save"); ?></button>
|
||||
</form>
|
||||
<?php
|
||||
|
|
Loading…
Reference in New Issue
Block a user