Moderators Kyle Posted October 23, 2010 Moderators Report Posted October 23, 2010 Like if i want to add for expample, EDIT_PIREPS and in the tpl file, adds the group. Is there a list where i can add the gorup settings? Quote
Administrators simpilot Posted October 23, 2010 Administrators Report Posted October 23, 2010 <?php if(Auth::LoggedIn())//are they logged in? {//yes they are if(PilotGroups::group_has_perm(Auth::$usergroups, EDIT_PIREPS))//do they have permission to edit pireps? { //yes they do - do your stuff for pilots logged in and with the edit pireps permission } else { //no they dont - send them back to the home page } } else { //no they are not logged in - send them back to the home page } ?> 1 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.