SwiftModders Posted February 16, 2020 Share Posted February 16, 2020 Hi Guys, I was wondering if there is a way to allow admins to bypass the "requirelogin" option set in your module. Essentially I want admins/staff to be able to access the template without having to be a client. I know I can set requirelogin to false so anyone can access the page, but I do not want this page to be public. Any thoughts on a way to accomplish this? Thanks! 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted February 16, 2020 Share Posted February 16, 2020 Hi, At the moment I cannot be precise (replying from phone) but you could use an OR condition. In pseudo-code... If (isLoggedIn OR isMasqueradeAsAdmin) Alternatievely... If (isLoggedIn OR isAdmin) 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.