From d12b41a958fe8202df3924df18a6c40dfda56b1a Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Fri, 6 Sep 2019 14:54:11 +0200 Subject: [PATCH] use new method SeedDMS_Core_Document::isType() --- inc/inc.ClassAccessOperation.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/inc/inc.ClassAccessOperation.php b/inc/inc.ClassAccessOperation.php index 21f01fb12..43a30f2e8 100644 --- a/inc/inc.ClassAccessOperation.php +++ b/inc/inc.ClassAccessOperation.php @@ -258,7 +258,7 @@ class SeedDMS_AccessOperation { * review and if it is allowed in the settings */ function mayUpdateReview($updateUser) { /* {{{ */ - if(get_class($this->obj) == 'SeedDMS_Core_Document') { + if($this->obj->isType('document')) { if($this->settings->_enableUpdateRevApp && ($updateUser == $this->user) && !$this->obj->hasExpired()) { return true; } @@ -293,7 +293,7 @@ class SeedDMS_AccessOperation { * approval and if it is allowed in the settings */ function mayUpdateApproval($updateUser) { /* {{{ */ - if(get_class($this->obj) == 'SeedDMS_Core_Document') { + if($this->obj->isType('document')) { if($this->settings->_enableUpdateRevApp && ($updateUser == $this->user) && !$this->obj->hasExpired()) { return true; }