diff --git a/datamodels/2.x/itop-portal-base/portal/src/Helper/ContextManipulatorHelper.php b/datamodels/2.x/itop-portal-base/portal/src/Helper/ContextManipulatorHelper.php index 741e836f7..58caab5f8 100644 --- a/datamodels/2.x/itop-portal-base/portal/src/Helper/ContextManipulatorHelper.php +++ b/datamodels/2.x/itop-portal-base/portal/src/Helper/ContextManipulatorHelper.php @@ -529,7 +529,6 @@ class ContextManipulatorHelper */ public static function EncodeRulesToken($aTokenRules) { - $aTokenRules['user_id'] = UserRights::GetUserId(); $aTokenRules['salt'] = base64_encode(random_bytes(8)); $sPPrivateKey = self::GetPrivateKey(); @@ -575,12 +574,6 @@ class ContextManipulatorHelper throw new Exception('DecodeRulesToken not a proper json structure.'); } - // Verify user id - if ($aTokenRules['user_id'] !== UserRights::GetUserId()) - { - throw new Exception('DecodeRulesToken user id does not match.'); - } - return $aTokenRules; }