mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Merge pull request #134 from itomig-de/feature/IsWriteAllowed
Enable external classes to use bypass function as well
This commit is contained in:
@@ -4217,6 +4217,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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user