joeholden Posted November 7, 2012 Report Share Posted November 7, 2012 Hello, How do you make custom module pages so that only staff can see them? is there a piece of code that you put at the top of the page? All help appriciated! Quote Link to comment Share on other sites More sharing options...
vader21 Posted November 7, 2012 Report Share Posted November 7, 2012 <?php if(Auth::LoggedIn()) { if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) { ?> Your Page content here Hope it helps. <?php } } ?> 1 Quote Link to comment Share on other sites More sharing options...
joeholden Posted November 7, 2012 Author Report Share Posted November 7, 2012 Works great! Thanks 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.