This is really getting on my nerves. I'm getting emails from pilots asking to be marked as active, so I do it, bu then they still get the error, and I look at the admin panel - they're inactive again!
Pilots can't login, so they can't see schedules, so they can't fly... you get the picture...
Also, my local.config.php says this:
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' => 'You are marked as inactive',
'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',
'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, if you wish to continue your career, please contact us',
'default' => false,
'canlogin' => false,
'active' => false,
'autoretire' => false,
'group_add' => array(
'Resigned',
),
'group_remove' => array(
'Active Pilots',
),
),
));
But why can inactive pilots still not login? They get the contact HR message!