Changes between Version 49 and Version 50 of AjaxList


Ignore:
Timestamp:
2010-09-08T14:01:55Z (14 years ago)
Author:
Serge Okon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AjaxList

    v49 v50  
    155155);
    156156}}}
     157Every column ID corresponds to a map-type column. When the column's entry (raw, not yet translated), marched the map entry's in the above structure, then the boolean true or false varible will deterime wherether the user is allowed to perform an action. The "!default" map entry takes effect when the column's cell contents don't match any of the other entries. For example, the following real example is taken from the user's controller, designed to allow instructors to only edit students, and not other user types
     158   $actionRestrictions = array(
     159      "User.role" => array (
     160         "S" => true,              // Allow modification of students
     161         "!default" => false));    // Dis-allow modification for all other user types
     162
    157163==== Extra Filters ====
    158164