Jump to content

Acces limité a superadmin dans la BO


Recommended Posts

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'}&amp;vieworder&amp;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'}&amp;vieworder&amp;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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...