Changes between Version 4 and Version 5 of AppFiltering


Ignore:
Timestamp:
Mar 4, 2014, 11:55:51 AM (11 years ago)
Author:
davea
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AppFiltering

    v4 v5  
    1 = Application filtering =
     1= User app selection =
    22
    33You can allow users to select which applications they will receive work for
    44(by default, they may receive work for any application).
    55
    6 This information is stored in the [ProjectSpecificPrefs project-specific preferences].
     6Each user's list of selected apps is stored in the [ProjectSpecificPrefs project-specific preferences].
     7This is stored in the user.project_specific_prefs database field.
    78Each 'allowed' application is represented by an element {{{<app_id>N</app_id>}}},
    89where N is the database ID of the application.
    910If no {{{<app_id>}}} elements are present, the user may be sent work for any application.
    1011
    11 The sample PHP file for project-specific preferences
    12 supports application selection, but it is commented out by default:
     12This feature is disabled by default.
     13To enable it, edit your html/project/project_specific_prefs.inc to contain
    1314{{{
    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 }
     15define ('APP_SELECT_PREFS', true);
    2216}}}
    2317
    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 ==
    2619
    27 If you use application filtering,
    28 be aware that currently there is no easy way to cancel it:
     20When you add a new app, it won't be sent to any users who have selected apps.
     21You can change this (i.e. add the new app to the prefs of users who have selected apps)
     22by running
     23{{{
     24app_select_edit.php ID
     25}}}
     26in your html/ops directory (where ID is the database ID of the new app).
     27
     28== Warning ==
     29
     30Once you use application filtering,
     31currently there is no easy way to cancel it:
    2932users who have non-empty app lists will continue to
    3033be filtered even if you remove app filtering from your PHP code.