# This patch file was generated by NetBeans IDE # This patch can be applied using context Tools: Apply Diff Patch action on respective folder. # It uses platform neutral UTF-8 encoding. # Above lines and this line are ignored by the patching process. --- administrator/components/com_comprofiler/library/cb/cb.lists.php +++ administrator/components/com_comprofiler/library/cb/cb.lists.php @@ -51,7 +51,7 @@ $myUser->load( (int) $uid ); } */ - $useraccessgroupSQL = " AND useraccessgroupid IN (".implode(',',getChildGIDS(userGID($uid))).")"; + $useraccessgroupSQL = " AND useraccessgroupid IN (".implode(',',$_CB_framework->acl->get_groups_below_me( $uid, true )).")"; $_CB_database->setQuery( "SELECT listid, title FROM #__comprofiler_lists WHERE published=1" . $useraccessgroupSQL . " ORDER BY ordering" ); $plists = $_CB_database->loadObjectList(); $lists = array(); @@ -91,7 +91,7 @@ echo _UE_LIST_DOES_NOT_EXIST; return; } - if ( ! allowAccess( $row->useraccessgroupid,'RECURSE', userGID($uid) ) ) { \ No newline at end of file + if ( ! allowAccess( $row->useraccessgroupid,'RECURSE', $_CB_framework->acl->get_groups_below_me( $uid, true ) ) ) { \ No newline at end of file echo _UE_NOT_AUTHORIZED; return; }