Jump to content

Effects of Deleting Pilots?


freshJet

Recommended Posts

  • Moderators

Yes i think it does, it will effect the amount of pireps, I have been pondering this for a while now, to delete or just to lock out, i decided to make use of the groups and after the pre defined inactivity the pilots account gets locked out so they cant login or file a pirep.

That was all the flights are preserved and should the pilot wish to come back they can pick up from where they left off.

Link to comment
Share on other sites

Something is wrong. I want inactive pilots to be able to access the site, but they still get the annoying message...

From local.config.php:

Config::Set('PILOT_STATUS_TYPES', array(

   /* DO NOT CHANGE THIS ACTIVE NUMBER OR STATUS OR THINGS WILL BREAK!!! */
   0 => array( 
       'name' => 'Active',             # The title to show in the dropdown
       'message' => '',                # Message to show if they can't login (below is false)
       'default' => true,              # Should this be their default status?
       'canlogin' => true,             # Are they allowed to log in
       'active' => true,               # Are they an active pilot?
       'autoretire' => true,          # Use this status for the auto-retire functionality
       'group_add' => array(           # ID or name of the group this user is added to with this status
           'Active Pilots', 
       ),      
       'group_remove' => array(        # ID or name of the groups this user is removed from with this status
           'Inactive Pilots', 
       ),   
   ),

   /* DO NOT CHANGE THIS INACTIVE NUMBER OR STATUS OR THINGS WILL BREAK!!! */
   1 => array(
       'name' => 'Inactive',
       'message' => '',
       'default' => false, 
       'canlogin' => true,
       'active' => false,
       'autoretire' => false,
       'group_add' => array(
           'Inactive Pilots',  
       ),      
       'group_remove' => array(       
           'Active Pilots',
       ),
   ),

   2 => array(
       'name' => 'Banned',
       'message' => 'Your account is banned, please contact an admin!',
       'default' => false, 
       'canlogin' => false,
       'active' => false,
       'autoretire' => false,
       'group_add' => array(
           'Banned', 
       ),  
       'group_remove' => array(
           'Active Pilots', 
       ),
   ),

   3 => array(
       'name' => 'On Leave',
       'message' => 'You have been marked as on leave',
       'default' => false, 
       'canlogin' => true,
       'active' => true,
       'autoretire' => true,
       'group_add' => array(
           'On Leave', 
       ),  
       'group_remove' => array(
           'Active Pilots', 
       ),
   ),

   4 => array(
       'name' => 'Resigned',
       'message' => 'You have requested to Resign, To continue your career please contact us',
       'default' => false, 
       'canlogin' => false,
       'active' => false,
       'autoretire' => false,
       'group_add' => array(
           'Resigned', 
       ),  
       'group_remove' => array(
           'Active Pilots', 
       ),
   ),
));

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...