yggdrasil Posted January 10, 2016 Share Posted January 10, 2016 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. 0 Quote Link to comment Share on other sites More sharing options...
zomex Posted January 10, 2016 Share Posted January 10, 2016 Hello, Here are the 2 options: {if $adminMasqueradingAsClient} {/if} If logged-in as a admin via a clients account {if $adminLoggedIn} {/if} If logged-in as a admin 0 Quote Link to comment Share on other sites More sharing options...
yggdrasil Posted January 10, 2016 Author Share Posted January 10, 2016 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. 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted January 10, 2016 Share Posted January 10, 2016 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. the documentation does not include everything WHMCS have 0 Quote Link to comment Share on other sites More sharing options...
zomex Posted January 11, 2016 Share Posted January 11, 2016 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 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.