Skip to content

Commit

Permalink
Updated store / website control enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
magemaclean committed Nov 24, 2019
1 parent f2d8f6b commit c39fb31
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Helper/Data.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ public function __construct(
parent::__construct($context);
}

public function isEnabled()
public function isEnabled($storeId = null)
{
return $this->scopeConfig->isSetFlag(self::XML_PATH_SECTION . '/general/enabled');
return $this->scopeConfig->isSetFlag(
self::XML_PATH_SECTION . '/general/enabled',
ScopeInterface::SCOPE_STORE,
$storeId
);
}

public function canAccessCategory() {
Expand Down

0 comments on commit c39fb31

Please sign in to comment.