Intenta lo siguiente:
Sources/Shop/View/Home.php
Sources/Shop/View/Home.php
Code (Search) Select
$context['template_layers'][] = 'shop';
// What if the Shop is disabled? User shouldn't be able to access the Shop
if (empty($modSettings['Shop_enable_shop']))
fatal_error(Shop::getText('currently_disabled'), false);
// Are they allowed to Access the Shop? If not.. YOU SHALL NOT PASS.
// Anyway if user can Manage the Shop, there's no problem :).
if (!empty($modSettings['Shop_enable_shop']) && !allowedTo('shop_canAccess') && !allowedTo('shop_canManage'))
isAllowedTo('shop_canAccess');
// Maintenance. Only Shop admins can access.
if (!empty($modSettings['Shop_enable_shop']) && !empty($modSettings['Shop_enable_maintenance']) && allowedTo('shop_canAccess') && !allowedTo('shop_canManage'))
fatal_error(Shop::getText('currently_maintenance'), false);
Code (Replace) Select
// What if the Shop is disabled? User shouldn't be able to access the Shop
if (empty($modSettings['Shop_enable_shop']))
fatal_error(Shop::getText('currently_disabled'), false);
// Are they allowed to Access the Shop? If not.. YOU SHALL NOT PASS.
// Anyway if user can Manage the Shop, there's no problem :).
if (!empty($modSettings['Shop_enable_shop']) && !allowedTo('shop_canAccess') && !allowedTo('shop_canManage'))
isAllowedTo('shop_canAccess');
// Maintenance. Only Shop admins can access.
if (!empty($modSettings['Shop_enable_shop']) && !empty($modSettings['Shop_enable_maintenance']) && allowedTo('shop_canAccess') && !allowedTo('shop_canManage'))
fatal_error(Shop::getText('currently_maintenance'), false);
$context['template_layers'][] = 'shop';