Changeset 484 for trunk/bin


Ignore:
Timestamp:
Jul 30, 2014 10:43:49 PM (10 years ago)
Author:
anonymous
Message:

Changed private methods and properties to protected. A few minor bug fixes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/acl.cli.php

    r482 r484  
    5858);
    5959
    60 
    6160/********************************************************************
    6261* CONFIG
     
    6766require_once 'codebase/lib/Utilities.inc.php';
    6867
     68define('_CLI', true);
    6969$app =& App::getInstance('module_maker');
    7070$app->setParam(array(
     
    102102********************************************************************/
    103103
     104if (!$db->tableExists('acl_tbl')) {
     105    printf("This project doesn't appear to be using ACL (there is no acl_tbl in the %s DB).\n", $app->getParam('db_name'));
     106    die;
     107}
     108
    104109$op = $_SERVER['argv'][1];
    105110switch ($op) {
     
    246251(he can edit any object).
    247252
    248 Each access object is stored as a node in hierarchical tree structures.
     253Each access object is stored as a node in hierarchical tree structure.
    249254A permission granted to a node is applied to all its children. If a child
    250 node is specified a different permission that is more specific than
    251 anything on the branch it will take precedence. If no permission is
    252 specified, root is used for that object. Root, in this case, means
    253 "anything" since it is at the top of all branches.
     255node is specified with a permission more specific than its ancestors, the
     256child will take precedence. If no permission is specified, root is used,
     257implying access to any object of that type.
    254258
    255259Usage: <?php echo $this_script; ?> command [args]
     
    272276    revoke aro [aco] [axo]
    273277    delete aro aco axo
    274 
    275278
    276279For the add*, mv*, grant, and revoke commands if any of the optional
Note: See TracChangeset for help on using the changeset viewer.