From 427326d0749076de9d2dfcf50597586dec626f9d Mon Sep 17 00:00:00 2001 From: Lars Hippler Date: Wed, 8 Apr 2020 17:24:12 +0200 Subject: [PATCH] Enable external classes (i.e. iApplicationObjectExtension) to use bypass function as well --- application/cmdbabstract.class.inc.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/application/cmdbabstract.class.inc.php b/application/cmdbabstract.class.inc.php index e4ba02414..3fd5527a5 100644 --- a/application/cmdbabstract.class.inc.php +++ b/application/cmdbabstract.class.inc.php @@ -4090,6 +4090,16 @@ EOF $this->bAllowWrite = $bAllow; } + /** + * Whether to bypass the checks of user rights when writing this object, could be used in {@link \iApplicationObjectExtension::OnCheckToWrite()} + * + * @return bool + */ + public function GetAllowWrite() + { + return $this->bAllowWrite; + } + /** * Bypass the check of the user rights when deleting this object *