Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ichaykin/4307b0210b4e5497fc6b4c363c5274f1 to your computer and use it in GitHub Desktop.
Save ichaykin/4307b0210b4e5497fc6b4c363c5274f1 to your computer and use it in GitHub Desktop.
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