Jump to content
thirty bees forum

Check if access i from front office or backoffice


mauroagr

Recommended Posts

You can simply check if _PS_ADMIN_DIR_ is defined. Alternatively, you can look what controller is currently in use - Context::getInstance()->controlller.

Can I ask what you are trying to achieve? It seems really strange that the logic override should behave differently for backed/frontend

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