Skip to content

Commit fbaa42b

Browse files
Yaroslav VoronoySergey Nosov
authored andcommitted
MAGETWO-50611: [Github][Security] WebAPIs allow anonymous access
1 parent 26f3f38 commit fbaa42b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/code/Magento/WebapiSecurity/Model/Plugin/CacheInvalidator.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function afterAfterSave(
3737
if ($result->getPath() == \Magento\WebapiSecurity\Model\Plugin\AnonymousResourceSecurity::XML_ALLOW_INSECURE
3838
&& $result->isValueChanged()
3939
) {
40-
$this->cacheTypeList->invalidate(\Magento\Webapi\Model\Cache\Type\Webapi::TYPE_IDENTIFIER);
40+
$this->cacheTypeList->invalidate(\Magento\Framework\App\Cache\Type\Webapi::TYPE_IDENTIFIER);
4141
}
4242

4343
return $result;

0 commit comments

Comments
 (0)