mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
do not use static class name 'SeedDMS_Core_Document'
rather use classname as saved in instance of dms
This commit is contained in:
parent
1d51b3ce13
commit
f6db8de5bd
|
@ -62,7 +62,7 @@ class SeedDMS_AccessOperation {
|
|||
* even if is disallowed in the settings.
|
||||
*/
|
||||
function mayEditVersion() { /* {{{ */
|
||||
if(get_class($this->obj) == 'SeedDMS_Core_Document') {
|
||||
if(get_class($this->obj) == $this->dms->getClassname('document')) {
|
||||
$version = $this->obj->getLatestContent();
|
||||
if (!isset($this->settings->_editOnlineFileTypes) || !is_array($this->settings->_editOnlineFileTypes) || !in_array(strtolower($version->getFileType()), $this->settings->_editOnlineFileTypes))
|
||||
return false;
|
||||
|
|
Loading…
Reference in New Issue
Block a user