MidoTheHawk Posted September 18, 2011 Report Posted September 18, 2011 Hello, I was wondering if it is possible to have the system check if the pilot is, for example, a Senior Pilot, before allowing him to access a content. I am looking for a modification for this, maybe: if(Auth::LoggedIn()) { if(PilotGroups::group_has_perm(Auth::$usergroups, ACCESS_ADMIN)) { echo '<a href="'.fileurl('/admin').'">Admin Center</a>'; } } Many Thanks! Quote
Administrators simpilot Posted September 21, 2011 Administrators Report Posted September 21, 2011 You could tie it to ranks easier I think; <?php if(loggedin()) { //they are logged in, check their rank if(Auth::$userinfo->rankid >= 'x') {do stuff} else {don't do stuff} } else { //they are not logged in - do other stuff } ?> Quote
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.