do not use static class name 'SeedDMS_Core_Document'

rather use classname as saved in instance of dms
This commit is contained in:
Uwe Steinmann 2016-11-02 13:40:54 +01:00
parent 1d51b3ce13
commit f6db8de5bd

View File

@ -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;