Security hardening

This commit is contained in:
jf-cbd
2024-12-03 09:54:31 +01:00
parent 1fa0f7bdd9
commit a797878b17

View File

@@ -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 {