- Timestamp:
- Jul 30, 2014 10:43:49 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/bin/acl.cli.php
r482 r484 58 58 ); 59 59 60 61 60 /******************************************************************** 62 61 * CONFIG … … 67 66 require_once 'codebase/lib/Utilities.inc.php'; 68 67 68 define('_CLI', true); 69 69 $app =& App::getInstance('module_maker'); 70 70 $app->setParam(array( … … 102 102 ********************************************************************/ 103 103 104 if (!$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 104 109 $op = $_SERVER['argv'][1]; 105 110 switch ($op) { … … 246 251 (he can edit any object). 247 252 248 Each access object is stored as a node in hierarchical tree structure s.253 Each access object is stored as a node in hierarchical tree structure. 249 254 A 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. 255 node is specified with a permission more specific than its ancestors, the 256 child will take precedence. If no permission is specified, root is used, 257 implying access to any object of that type. 254 258 255 259 Usage: <?php echo $this_script; ?> command [args] … … 272 276 revoke aro [aco] [axo] 273 277 delete aro aco axo 274 275 278 276 279 For the add*, mv*, grant, and revoke commands if any of the optional
Note: See TracChangeset
for help on using the changeset viewer.