mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-24 02:58:43 +02:00
Protect the webservices...
SVN:trunk[2382]
This commit is contained in:
@@ -107,6 +107,13 @@ class BasicServices extends WebServicesBase
|
||||
}
|
||||
UserRights::Login($sLogin);
|
||||
|
||||
if (!class_exists('Incident'))
|
||||
{
|
||||
$oRes = new WebServiceResult();
|
||||
$oRes->LogError("The class Incident does not exist. Did you install the Incident Management (ITIL) module ?");
|
||||
return $oRes;
|
||||
}
|
||||
|
||||
$aCallerDesc = self::SoapStructToExternalKeySearch($oCallerDesc);
|
||||
$aCustomerDesc = self::SoapStructToExternalKeySearch($oCustomerDesc);
|
||||
$aServiceDesc = self::SoapStructToExternalKeySearch($oServiceDesc);
|
||||
|
||||
Reference in New Issue
Block a user