Missing security (Customer should be logged in to access these pages)
This commit is contained in:
@@ -1,14 +1,18 @@
|
|||||||
{extends file="layout.tpl"}
|
{extends file="layout.tpl"}
|
||||||
|
|
||||||
|
{* Security *}
|
||||||
|
{block name="no-return-functions" prepend}
|
||||||
|
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
|
||||||
|
{/block}
|
||||||
|
|
||||||
{* Body Class *}
|
{* Body Class *}
|
||||||
{block name="body-class"}page-account-password{/block}
|
{block name="body-class"}page-account-password{/block}
|
||||||
|
|
||||||
{* Breadcrumb *}
|
{* Breadcrumb *}
|
||||||
{block name='no-return-functions' append}
|
{block name='no-return-functions' append}
|
||||||
{$breadcrumbs = [['title' => {intl l="Account"}, 'url'=>{url path="/account"}]]}
|
|
||||||
{$breadcrumbs = [
|
{$breadcrumbs = [
|
||||||
['title' => {intl l="Account"}, 'url'=>{url path="/account"}],
|
['title' => {intl l="Account"}, 'url'=>{url path="/account"}],
|
||||||
['title' => {intl l="Change Password"}, 'url'=>{url path="/account/password"}]
|
['title' => {intl l="Change Password"}, 'url'=>{url path="/account/password"}]
|
||||||
]}
|
]}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,18 @@
|
|||||||
{extends file="layout.tpl"}
|
{extends file="layout.tpl"}
|
||||||
|
|
||||||
|
{* Security *}
|
||||||
|
{block name="no-return-functions" prepend}
|
||||||
|
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
|
||||||
|
{/block}
|
||||||
|
|
||||||
{* Body Class *}
|
{* Body Class *}
|
||||||
{block name="body-class"}page-account-update{/block}
|
{block name="body-class"}page-account-update{/block}
|
||||||
|
|
||||||
{* Breadcrumb *}
|
{* Breadcrumb *}
|
||||||
{block name='no-return-functions' append}
|
{block name='no-return-functions' append}
|
||||||
{$breadcrumbs = [['title' => {intl l="Account"}, 'url'=>{url path="/account"}]]}
|
|
||||||
{$breadcrumbs = [
|
{$breadcrumbs = [
|
||||||
['title' => {intl l="Account"}, 'url'=>{url path="/account"}],
|
['title' => {intl l="Account"}, 'url'=>{url path="/account"}],
|
||||||
['title' => {intl l="Update Profile"}, 'url'=>{url path="/account/update"}]
|
['title' => {intl l="Update Profile"}, 'url'=>{url path="/account/update"}]
|
||||||
]}
|
]}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
{extends file="layout.tpl"}
|
{extends file="layout.tpl"}
|
||||||
|
|
||||||
|
{* Security *}
|
||||||
{block name="no-return-functions" prepend}
|
{block name="no-return-functions" prepend}
|
||||||
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
|
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
|
||||||
{/block}
|
{/block}
|
||||||
@@ -7,7 +8,7 @@
|
|||||||
{* Breadcrumb *}
|
{* Breadcrumb *}
|
||||||
{block name='no-return-functions' append}
|
{block name='no-return-functions' append}
|
||||||
{$breadcrumbs = [
|
{$breadcrumbs = [
|
||||||
['title' => {intl l="Account"}, 'url'=>{url path="/account"}]
|
['title' => {intl l="Account"}, 'url'=>{url path="/account"}]
|
||||||
]}
|
]}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{extends file="layout.tpl"}
|
{extends file="layout.tpl"}
|
||||||
|
|
||||||
{block name="no-return-functions"}
|
{* Security *}
|
||||||
|
{block name="no-return-functions" prepend}
|
||||||
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
|
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
@@ -20,7 +21,7 @@
|
|||||||
|
|
||||||
<article class="col-main" role="main" aria-labelledby="main-label">
|
<article class="col-main" role="main" aria-labelledby="main-label">
|
||||||
|
|
||||||
<h1 id="main-label" class="page-header">{intl l="Create New Address"}</h1>
|
<h1 id="main-label" class="page-header">{intl l="Address Update"}</h1>
|
||||||
{form name="thelia.front.address.update"}
|
{form name="thelia.front.address.update"}
|
||||||
{loop name="customer.update" type="address" customer="current" id="{$address_id}"}
|
{loop name="customer.update" type="address" customer="current" id="{$address_id}"}
|
||||||
<form id="form-address" class="form-horizontal" action="{url path="/address/update/{$address_id}"}" method="post" role="form">
|
<form id="form-address" class="form-horizontal" action="{url path="/address/update/{$address_id}"}" method="post" role="form">
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{extends file="layout.tpl"}
|
{extends file="layout.tpl"}
|
||||||
|
|
||||||
{block name="no-return-functions"}
|
{* Security *}
|
||||||
|
{block name="no-return-functions" prepend}
|
||||||
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
|
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
|
||||||
{/block}
|
{/block}
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{extends file="layout.tpl"}
|
{extends file="layout.tpl"}
|
||||||
|
|
||||||
{block name="no-return-functions"}
|
{* Security *}
|
||||||
|
{block name="no-return-functions" prepend}
|
||||||
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
|
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
|
||||||
{check_cart_not_empty}
|
{check_cart_not_empty}
|
||||||
{/block}
|
{/block}
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
{extends file="layout.tpl"}
|
{extends file="layout.tpl"}
|
||||||
|
|
||||||
{block name="no-return-functions"}
|
{* Security *}
|
||||||
|
{block name="no-return-functions" prepend}
|
||||||
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
|
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
|
||||||
{check_cart_not_empty}
|
{check_cart_not_empty}
|
||||||
{check_valid_delivery}
|
{check_valid_delivery}
|
||||||
|
|||||||
@@ -1,5 +1,10 @@
|
|||||||
{extends file="layout.tpl"}
|
{extends file="layout.tpl"}
|
||||||
|
|
||||||
|
{* Security *}
|
||||||
|
{block name="no-return-functions" prepend}
|
||||||
|
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
|
||||||
|
{/block}
|
||||||
|
|
||||||
{* Body Class *}
|
{* Body Class *}
|
||||||
{block name="body-class"}page-order-payment{/block}
|
{block name="body-class"}page-order-payment{/block}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user