manucmoi Posted April 10, 2019 Share Posted April 10, 2019 Bonjour à tous ! Je souhaiterai savoir comment limiter l'accès à un élément particulier dans le back office, réservé uniquement a "Superadmin" svp ? L'élément concerné serait uniquement le menu déroulant de l'état de commande (ex : en attente de paiement, livré, ...) dans l'onglet commande... Le code de ce menu déroulant que j'ai trouvé est : <form action="{$currentIndex|escape:'html':'UTF-8'}&vieworder&token={$smarty.get.token}" method="post" class="form-horizontal well hidden-print"> Je l'ai modifié en : if ( $employee->isSuperAdmin() ) { <form action="{$currentIndex|escape:'html':'UTF-8'}&vieworder&token={$smarty.get.token}" method="post" class="form-horizontal well hidden-print"> } {/if} Mais cela me plante ma page... :/ Quelqu'un peut m'aider svp ? Merci à tous : Link to comment Share on other sites More sharing options...
Mediacom87 Posted April 10, 2019 Share Posted April 10, 2019 Version PrestaShop ? Link to comment Share on other sites More sharing options...
manucmoi Posted April 10, 2019 Author Share Posted April 10, 2019 pardon j'avais oublié prestashop v1.6 Link to comment Share on other sites More sharing options...
manucmoi Posted April 10, 2019 Author Share Posted April 10, 2019 la version exacte est v1.6.1.22 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now