Changes between Version 4 and Version 5 of AppFiltering
- Timestamp:
- Mar 4, 2014, 11:55:51 AM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
AppFiltering
v4 v5 1 = Application filtering=1 = User app selection = 2 2 3 3 You can allow users to select which applications they will receive work for 4 4 (by default, they may receive work for any application). 5 5 6 This information is stored in the [ProjectSpecificPrefs project-specific preferences]. 6 Each user's list of selected apps is stored in the [ProjectSpecificPrefs project-specific preferences]. 7 This is stored in the user.project_specific_prefs database field. 7 8 Each 'allowed' application is represented by an element {{{<app_id>N</app_id>}}}, 8 9 where N is the database ID of the application. 9 10 If no {{{<app_id>}}} elements are present, the user may be sent work for any application. 10 11 11 Th e sample PHP file for project-specific preferences12 supports application selection, but it is commented out by default: 12 This feature is disabled by default. 13 To enable it, edit your html/project/project_specific_prefs.inc to contain 13 14 {{{ 14 if (false) { 15 $app_array = array( 16 array(1, "Application one"), 17 array(2, "Application two"), 18 ); 19 } else { 20 $app_array = null; 21 } 15 define ('APP_SELECT_PREFS', true); 22 16 }}} 23 17 24 To enable it, change the 'false' to 'true', 25 and add your own list of application IDs and names. 18 == Adding a new app == 26 19 27 If you use application filtering, 28 be aware that currently there is no easy way to cancel it: 20 When you add a new app, it won't be sent to any users who have selected apps. 21 You can change this (i.e. add the new app to the prefs of users who have selected apps) 22 by running 23 {{{ 24 app_select_edit.php ID 25 }}} 26 in your html/ops directory (where ID is the database ID of the new app). 27 28 == Warning == 29 30 Once you use application filtering, 31 currently there is no easy way to cancel it: 29 32 users who have non-empty app lists will continue to 30 33 be filtered even if you remove app filtering from your PHP code.