Index: branches/unlabeled/unlabeled-1.57.2/kernel/include/category.php =================================================================== diff -u -r6136 -r6544 --- branches/unlabeled/unlabeled-1.57.2/kernel/include/category.php (.../category.php) (revision 6136) +++ branches/unlabeled/unlabeled-1.57.2/kernel/include/category.php (.../category.php) (revision 6544) @@ -691,17 +691,11 @@ function UpdateACL() { - global $objGroups, $objPermCache; - - $glist = $objGroups->GetAllGroupList(); - - $ViewList = $this->Permissions->GetGroupPermList($this,"CATEGORY.VIEW",$glist); - $perms = $this->Permissions->GetAllViewPermGroups($this,$glist); - //echo "
";print_r($perms); echo "
"; - foreach($perms as $PermName => $l) - { - $this->SetViewPerms($PermName,$l,$glist); - } + $q = 'INSERT INTO '.TABLE_PREFIX.'PermCache (CategoryId, PermId, ACL, DACL) + SELECT '.$this->UniqueId().', PermId, ACL, DACL + FROM '.TABLE_PREFIX.'PermCache + WHERE CategoryId = '.$this->Get('ParentId'); + $this->Conn->Query($q); } function Cat_Link()