freshJet Posted September 1, 2011 Report Share Posted September 1, 2011 I don't like the fact that inactive pilots cannot access the website. So, they contact Human Resources, and then I set them as active, but I think the system changes it back. It's so annoying. How the hell do I turn it off - it's creating problems!!! Quote Link to comment Share on other sites More sharing options...
Moderators mark1million Posted September 1, 2011 Moderators Report Share Posted September 1, 2011 Just go in to the local.config.php file and change the group access to allow logging in, Example, 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' => 'Your account was marked inactive Please contact us to resume your career.', 'default' => false, 'canlogin' => false, '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( 'Inactive Pilots', ), '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( 'Inactive Pilots', ), '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( 'Inactive Pilots', ), 'group_remove' => array( 'Active Pilots', ), ), )); 1 Quote Link to comment Share on other sites More sharing options...
freshJet Posted September 4, 2011 Author Report Share Posted September 4, 2011 OK, thanks. Quote Link to comment Share on other sites More sharing options...
CPC900 Posted October 31, 2011 Report Share Posted October 31, 2011 On that note, how can you show the pilot roster with the status of "On Leave"?? I could not find it in a search, but I remember it being on the forum a long time ago, on how to display that. Quote Link to comment Share on other sites More sharing options...
LuxuryCEO Posted November 15, 2014 Report Share Posted November 15, 2014 On that note, how can you show the pilot roster with the status of "On Leave"?? I could not find it in a search, but I remember it being on the forum a long time ago, on how to display that. am looking for the same thing anything on this would help regards Quote Link to comment Share on other sites More sharing options...
RocketRod Posted November 16, 2014 Report Share Posted November 16, 2014 Maybe LOA module? Quote Link to comment Share on other sites More sharing options...
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.