Jump to content

Rev v2.1.934-143-gbee20b6 - added automatic group add to retired statuses, installer updates


Nabeel

Recommended Posts

  • Administrators

Changed Files:

m core/app.config.php

m core/common/PilotData.class.php

m core/common/PilotGroups.class.php

m install/fixtures/install.sql

m install/fixtures/update.sql

m install/includes/Installer.class.php

m install/update.php

m unittest/Tests/UserTest.php

added automatic group add to retired statuses, installer updates

View complete changes

Download from here

Link to comment
Share on other sites

  • Administrators

Status types has been expanded a bit:

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' => false,      	# 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', 
   	),   
),

  // etc
));

Link to comment
Share on other sites

×
×
  • Create New...