Update general.php

This commit is contained in:
Matej Bačo 2025-02-13 19:59:29 +01:00
parent ec05a3d668
commit a10882d7ee

View file

@ -722,7 +722,7 @@ App::init()
} else {
// Auto-allow domains with linked rule
$rule = Authorization::skip(fn () => $dbForPlatform->getDocument('rules', md5($origin)));
if (!$rule->isEmpty()) {
if (!$rule->isEmpty() && $rule->getAttribute('projectInternalId') === $project->getInternalId()) {
$refDomainOrigin = $origin;
}
}