Created
June 16, 2021 06:42
-
-
Save ichaykin/4307b0210b4e5497fc6b4c363c5274f1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/app/addons/storefront_rest_api/Tygh/Api/Entities/v40/SraStorefront.php b/app/addons/storefront_rest_api/Tygh/Api/Entities/v40/SraStorefront.php | |
index 12a97a44be..7efc633286 100644 | |
--- a/app/addons/storefront_rest_api/Tygh/Api/Entities/v40/SraStorefront.php | |
+++ b/app/addons/storefront_rest_api/Tygh/Api/Entities/v40/SraStorefront.php | |
@@ -41,15 +41,7 @@ class SraStorefront extends ASraEntity | |
} | |
$data = fn_storefront_rest_api_get_storefront($id); | |
- | |
- if ($data) { | |
- if (SiteArea::isStorefront($this->area) && $data['status'] === StorefrontStatuses::CLOSED) { | |
- $status = Response::STATUS_NOT_FOUND; | |
- $data = []; | |
- } else { | |
- $status = Response::STATUS_OK; | |
- } | |
- } | |
+ $status = Response::STATUS_OK; | |
return [ | |
'status' => $status, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment