$includeSelf = isset($options['include_self']);
$select_part = 'select u.id, u.name';
$includeSelf = isset($options['include_self']);
$select_part = 'select u.id, u.name';
$left_joins .= ' left join tt_roles r on (u.role_id = r.id)';
$where_part = " where u.team_id = $this->team_id";
$left_joins .= ' left join tt_roles r on (u.role_id = r.id)';
$where_part = " where u.team_id = $this->team_id";
// Example: has view_charts but does not have view_own_charts.
// In this case we still allow access to charts, but set behalf_id to someone else.
function adjustBehalfId() {
// Example: has view_charts but does not have view_own_charts.
// In this case we still allow access to charts, but set behalf_id to someone else.
function adjustBehalfId() {