mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Security hardening
This commit is contained in:
@@ -22,7 +22,6 @@ use UserRights;
|
||||
class OQLParserTest extends ItopDataTestCase
|
||||
{
|
||||
const USE_TRANSACTION = false;
|
||||
const CREATE_TEST_ORG = true;
|
||||
|
||||
/**
|
||||
* @group iTopChangeMgt
|
||||
@@ -46,7 +45,8 @@ class OQLParserTest extends ItopDataTestCase
|
||||
|
||||
public function testUnknownClassOqlException()
|
||||
{
|
||||
$sLogin = $this->GivenUserRestrictedToAnOrganizationInDB($this->getTestOrgId(), self::$aURP_Profiles['Portal user']);
|
||||
$oOrgId = $this->GivenObjectInDB('Organization', ['name' => 'TestOrg']);
|
||||
$sLogin = $this->GivenUserRestrictedToAnOrganizationInDB($oOrgId, self::$aURP_Profiles['Portal user']);
|
||||
UserRights::Login($sLogin);
|
||||
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user