Project

General

Profile

Bug #16236 » 3666_new.patch

Administrator Admin, 2006-06-15 20:14

View differences:

./t3lib/class.t3lib_treeview.php 2006-06-13 16:21:24.256125685 +0200
// Accumulate the id of the element in the internal arrays
$this->ids[]=$idH[$row['uid']]['uid'] = $row['uid'];
$this->ids_hierarchy[$depth][] = $row['uid'];
// Andreas Wolf, 13-06-2006 // attempt to fix bug ???? in T3-bugtracker
$this->orig_ids_hierarchy[$depth][] = $row['_ORIG_uid'] ? $row['_ORIG_uid'] : $row['uid'];
// Make a recursive call to the next level
$HTML_depthData = $depthData.'<img'.t3lib_iconWorks::skinImg($this->backPath,'gfx/ol/'.$LN.'.gif','width="18" height="16"').' alt="" />';
./typo3/mod/web/perm/index.php 2006-06-13 16:08:59.686101882 +0200
// Traverse the number of levels we want to allow recursive setting of permissions for:
for ($a=$this->getLevels;$a>0;$a--) {
if (is_array($tree->ids_hierarchy[$a])) {
foreach($tree->ids_hierarchy[$a] as $theId) {
if (is_array($tree->orig_ids_hierarchy[$a])) {
foreach($tree->orig_ids_hierarchy[$a] as $theId) {
if ($GLOBALS['BE_USER']->isAdmin() || $GLOBALS['BE_USER']->user['uid']==$tree->recs[$theId]['perms_userid']) {
$theIdListArr[]=$theId;
}
(1-1/2)