Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 143639
Collapse All | Expand All

(-)datatree.php (-2 / +6 lines)
Lines 6-12 require_once 'Horde/DataTree.php'; Link Here
6
 * The Perms_datatree:: class provides a DataTree driver for the Horde
6
 * The Perms_datatree:: class provides a DataTree driver for the Horde
7
 * permissions system.
7
 * permissions system.
8
 *
8
 *
9
 * $Horde: framework/Perms/Perms/datatree.php,v 1.6.2.10 2006/01/08 17:50:46 chuck Exp $
9
 * $Horde: framework/Perms/Perms/datatree.php,v 1.6.2.11 2006/05/04 13:26:16 jan Exp $
10
 *
10
 *
11
 * Copyright 2001-2006 Chuck Hagenbuch <chuck@horde.org>
11
 * Copyright 2001-2006 Chuck Hagenbuch <chuck@horde.org>
12
 * Copyright 2004-2006 Jan Schneider <jan@horde.org>
12
 * Copyright 2004-2006 Jan Schneider <jan@horde.org>
Lines 137-143 class Perms_datatree extends Perms { Link Here
137
     */
137
     */
138
    function &getPermissionById($cid)
138
    function &getPermissionById($cid)
139
    {
139
    {
140
        $object = $this->_datatree->getObjectById($cid, 'DataTreeObject_Permission');
140
        if ($cid == DATATREE_ROOT) {
141
            $object = &$this->newPermission(DATATREE_ROOT);
142
        } else {
143
            $object = &$this->_datatree->getObjectById($cid, 'DataTreeObject_Permission');
144
        }
141
        return $object;
145
        return $object;
142
    }
146
    }

Return to bug 143639