mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-05-09 13:06:14 +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
|
* review and if it is allowed in the settings
|
||||||
*/
|
*/
|
||||||
function mayUpdateReview($updateUser) { /* {{{ */
|
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()) {
|
if($this->settings->_enableUpdateRevApp && ($updateUser == $this->user) && !$this->obj->hasExpired()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -293,7 +293,7 @@ class SeedDMS_AccessOperation {
|
||||||
* approval and if it is allowed in the settings
|
* approval and if it is allowed in the settings
|
||||||
*/
|
*/
|
||||||
function mayUpdateApproval($updateUser) { /* {{{ */
|
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()) {
|
if($this->settings->_enableUpdateRevApp && ($updateUser == $this->user) && !$this->obj->hasExpired()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user