Project

General

Profile

Bug #3000 » 3000.patch

krileon, 29 November 2011 15:49

View differences:

administrator/components/com_comprofiler/library/cb/cb.lists.php
$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();
......
echo _UE_LIST_DOES_NOT_EXIST;
return;
}
if ( ! allowAccess( $row->useraccessgroupid,'RECURSE', userGID($uid) ) ) {
if ( ! allowAccess( $row->useraccessgroupid,'RECURSE', $_CB_framework->acl->get_groups_below_me( $uid, true ) ) ) {
echo _UE_NOT_AUTHORIZED;
return;
}
(1-1/2)