mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
use new method SeedDMS_Core_Document::isType()
This commit is contained in:
parent
4215eda966
commit
d12b41a958
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user