I need this becouse of special client groups with group leaders, and it's not good for them to see other groups. This is important for contact information confidanceJust make some changes in query and done this with assigning orgs to teams. It will be good to add this into your code. and add some kind of setting in admin panel for turning on this function.Actually i did some changes in org view - there were no sortingsQuery in files like this:Users.inc.phpfrom 9 string------------------$from = 'FROM '.USER_TABLE.' user ' . 'LEFT JOIN '.USER_EMAIL_TABLE.' email ON (user.id = email.user_id) ' . 'LEFT JOIN '.ORGANIZATION_TABLE.' org ON (user.org_id = org.id) ' . 'LEFT JOIN '.USER_ACCOUNT_TABLE.' account ON (account.user_id = user.id) ' .'LEFT JOIN '.STAFF_TABLE.' staff ON ( LEFT(org.manager, 1) = "s" AND staff.staff_id = SUBSTR(org.manager, 2)) ' .'LEFT JOIN '.TEAM_TABLE.' team ON ( LEFT(org.manager, 1) = "t" AND team.team_id = SUBSTR(org.manager, 2)) ' .'LEFT JOIN ost_team_member tm on (team.team_id=tm.team_id)';if($thisstaff->isAdmin() && !defined('ADMINPAGE')) { $where = 'WHERE 1'; } else {$where = ' WHERE user.org_id = 0 OR tm.staff_id = '.$thisstaff->GetId(); }orgs.inc.php$from = 'FROM '.ORGANIZATION_TABLE.' org ' .'LEFT JOIN '.STAFF_TABLE.' staff ON ( LEFT(org.manager, 1) = "s" AND staff.staff_id = SUBSTR(org.manager, 2)) ' .'LEFT JOIN '.TEAM_TABLE.' team ON ( LEFT(org.manager, 1) = "t" AND team.team_id = SUBSTR(org.manager, 2)) ' .'LEFT JOIN ost_team_member tm on (team.team_id=tm.team_id)';$where = ' WHERE tm.staff_id = '.$thisstaff->GetId();There were some troubles with search after that, user was hide in user
directory and in org - but in search still was ability to find contact
details and open. decided to add string to hide search from non admin
staffif($thisstaff->isAdmin() && !defined('ADMINPAGE')) { } else ...You do lot of work and this software is very helpful. THANKS