Index: trunk/kernel/include/category.php =================================================================== diff -u -N -r6093 -r6583 --- trunk/kernel/include/category.php (.../category.php) (revision 6093) +++ trunk/kernel/include/category.php (.../category.php) (revision 6583) @@ -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()