how can i edit group permissons, like add a permisson setting? [SOLVED]

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?

<?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 Like