Jump to content

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


Kyle

Recommended Posts

  • Administrators
<?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 }

?>

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...