use new method SeedDMS_Core_Document::isType()

This commit is contained in:
Uwe Steinmann 2019-09-06 14:54:11 +02:00
parent 4215eda966
commit d12b41a958

View File

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