Jump to content

Logged in as user variable


yggdrasil

Recommended Posts

Does someone if WHMCS has a way to identify when you are logged in as admin/staff user into a user account?

 

The reason is that I have some script that runs tracking data under if $loggedin in a template but it also runs when I log into the user account from WHMCS.

 

This creates a problem for me, as it executes my code with my data which conflicting the users real data.

 

Ideally I would like my code to be skipped or not executed if it's a staff user that logged into a user account.

Link to comment
Share on other sites

Thank you zomex, but what is the difference between adminMasqueradingAsClient and adminLoggedIn?

 

I guess the first one would be the correct in my case. Where did you found this variable as I searched the WHMCS docs for them and could not find them.

 

They are found in the footer.tpl file of the Six template. Used to display a "logged-in as" notice in the front-end

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated