remove context in all security function. This Parameter is not used anymore.

This commit is contained in:
Manuel Raynaud
2014-03-17 10:01:43 +01:00
parent 30ae68a4ef
commit 0e7c464183
12 changed files with 14 additions and 15 deletions

View File

@@ -71,8 +71,7 @@ class Auth extends BaseLoop implements ArraySearchLoopInterface
new TypeCollection(
new EnumListType(array(AccessManager::VIEW, AccessManager::CREATE, AccessManager::UPDATE, AccessManager::DELETE))
)
),
Argument::createAnyTypeArgument('context', 'front', false)
)
);
}

View File

@@ -61,8 +61,8 @@ class Security extends AbstractSmartyPlugin
if (! $this->securityContext->isGranted($roles, $resources, $modules, $accesses)) {
$ex = new AuthenticationException(
sprintf("User not granted for roles '%s', to access resources '%s' with %s in context '%s'.",
implode(',', $roles), implode(',', $resources), implode(',', $accesses), $context
sprintf("User not granted for roles '%s', to access resources '%s' with %s.",
implode(',', $roles), implode(',', $resources), implode(',', $accesses)
)
);

View File

@@ -2,7 +2,7 @@
{* Security *}
{block name="no-return-functions" prepend}
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
{check_auth role="CUSTOMER" login_tpl="login"}
{/block}
{* Body Class *}

View File

@@ -2,7 +2,7 @@
{* Security *}
{block name="no-return-functions" prepend}
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
{check_auth role="CUSTOMER" login_tpl="login"}
{/block}
{* Body Class *}

View File

@@ -2,7 +2,7 @@
{* Security *}
{block name="no-return-functions" prepend}
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
{check_auth role="CUSTOMER" login_tpl="login"}
{/block}
{* Breadcrumb *}

View File

@@ -2,7 +2,7 @@
{* Security *}
{block name="no-return-functions" prepend}
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
{check_auth role="CUSTOMER" login_tpl="login"}
{/block}
{* Body Class *}

View File

@@ -2,7 +2,7 @@
{* Security *}
{block name="no-return-functions" prepend}
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
{check_auth role="CUSTOMER" login_tpl="login"}
{/block}
{* Body Class *}

View File

@@ -2,7 +2,7 @@
{* Security *}
{block name="no-return-functions" prepend}
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
{check_auth role="CUSTOMER" login_tpl="login"}
{/block}
{* Breadcrumb *}

View File

@@ -92,7 +92,7 @@ GNU General Public License : http://www.gnu.org/licenses/
<nav class="navbar-collapse collapse nav-main" role="navigation" aria-label="{intl l="Main Navigation"}">
{nocache}
<ul class="nav navbar-nav navbar-cart navbar-right">
{loop type="auth" name="customer_info_block" role="CUSTOMER" context="front"}
{loop type="auth" name="customer_info_block" role="CUSTOMER"}
<li><a href="{url path="/logout"}" class="logout">{intl l="Log out!"}</a></li>
<li><a href="{url path="/account"}" class="account">{intl l="My Account"}</a></li>
{/loop}
@@ -256,7 +256,7 @@ GNU General Public License : http://www.gnu.org/licenses/
{loop name="footer_links" type="content" folder="2"}
<li><a href="{$URL}">{$TITLE}</a></li>
{/loop}
{loop type="auth" name="customer_is_logged" role="CUSTOMER" context="front"}
{loop type="auth" name="customer_is_logged" role="CUSTOMER"}
<li><a href="{url path="/logout"}" class="logout">{intl l="Log out!"}</a></li>
<li><a href="{url path="/account"}" class="account">{intl l="My Account"}</a></li>
{/loop}

View File

@@ -2,7 +2,7 @@
{* Security *}
{block name="no-return-functions" prepend}
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
{check_auth role="CUSTOMER" login_tpl="login"}
{check_cart_not_empty}
{/block}

View File

@@ -2,7 +2,7 @@
{* Security *}
{block name="no-return-functions" prepend}
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
{check_auth role="CUSTOMER" login_tpl="login"}
{check_cart_not_empty}
{check_valid_delivery}
{/block}

View File

@@ -2,7 +2,7 @@
{* Security *}
{block name="no-return-functions" prepend}
{check_auth context="front" role="CUSTOMER" login_tpl="login"}
{check_auth role="CUSTOMER" login_tpl="login"}
{/block}
{* Body Class *}