uawdijnntqw1x1x1
IP : 216.73.216.11
Hostname : toronto-dev2
Kernel : Linux toronto-dev2 4.15.0-213-generic #224-Ubuntu SMP Mon Jun 19 13:30:12 UTC 2023 x86_64
Disable Function : None :)
OS : Linux
PATH:
/
srv
/
users
/
craft4
/
apps
/
craft4-newsite-space
/
vendor
/
craftcms
/
commerce
/
src
/
templates
/
index.twig
/
/
{% set permissionsToView = { 'commerce/orders': 'commerce-manageOrders', 'commerce/promotions': 'commerce-managePromotions', 'commerce/shipping/shippingmethods': 'commerce-manageShipping', 'commerce/tax/taxrates': 'commerce-manageTaxes', 'commerce/subscriptions': 'commerce-manageSubscriptions', } %} {% set permission = permissionsToView[craft.commerce.settings.defaultView] ?? null %} {% if craft.commerce.settings.defaultView and permission and currentUser.can(permission) %} {% redirect craft.commerce.settings.defaultView %} {% endif %} {% if craft.commerce.settings.defaultView and craft.commerce.settings.defaultView == 'commerce/products' and craft.commerce.productTypes.editableProductTypes|length > 0 %} {% redirect 'commerce/products' %} {% endif %} {% if currentUser.can('commerce-manageOrders') %} {% redirect 'commerce/orders' %} {% endif %} {% if craft.commerce.productTypes.editableProductTypes|length > 0 %} {% redirect 'commerce/products' %} {% endif %} {% if currentUser.can('commerce-managePromotions') %} {% redirect 'commerce/promotions' %} {% endif %} {% if currentUser.can('commerce-manageShipping') %} {% redirect 'commerce/shipping/shippingmethods' %} {% endif %} {% if currentUser.can('commerce-manageTaxes') %} {% redirect 'commerce/tax/taxrates' %} {% endif %} {% if currentUser.can('commerce-manageSubscriptions') %} {% redirect 'commerce/subscriptions' %} {% endif %} {% exit 403 %}
/srv/users/craft4/apps/craft4-newsite-space/vendor/craftcms/commerce/src/templates/index.twig