Jump to content

Comment savoir si l'utilisateur est sur le backoffice ou non


Recommended Posts

Bonjour,

 

Je souhaiterais savoir si il y a un moyen de connaître la page ou l'emplacement général de l'utilisateur (front office ou backoffice).

 

En effet j'utilise hookBackOfficeTop dans lequel j'ai une fonction

J'utilise un alias hookheader (){ $this->hookBackOfficeTop()}

 

Cependant dans un certain cas j'aimerai ne pas activer le hook :

Le cas est le suivant : PrestaShop 1.5, monoboutique

 

 

Si quelqu'un connait une fonction du style :

isbackoffice()

 

merci

Link to comment
Share on other sites

  • 9 years later...

Du coup je me suis débrouillée de mon côté.

Ma demande personnelle était quand l'utilisateur est sur le site, savoir si il agit en BackOffice ou en FrontOffice. 
Avoir cette info me permet après d'augmenter l'info passée dans les logs. (Savoir si l'erreur a été faite en Fo ou en Bo)

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...