AND allow_gid = ''
AND deny_cid = ''
AND deny_gid = ''
+ AND private = 0
";
/**
}
$sql = sprintf(
- " AND ( allow_cid = '' OR allow_cid REGEXP '<%d>' )
+ " AND (( allow_cid = '' OR allow_cid REGEXP '<%d>' )
AND ( deny_cid = '' OR NOT deny_cid REGEXP '<%d>' )
AND ( allow_gid = '' OR allow_gid REGEXP '%s' )
AND ( deny_gid = '' OR NOT deny_gid REGEXP '%s')
+ OR private = 0 )
",
intval($remote_user),
intval($remote_user),
$sql_extra = permissions_sql($a->profile['uid'],$remote_contact,$groups);
- if(! local_user() && ! remote_user())
- $sql_extra .= " and `item`.`private` = 0 ";
-
$r = q("SELECT `item`.*, `item`.`id` AS `item_id`,
`contact`.`name`, `contact`.`photo`, `contact`.`url`, `contact`.`rel`,
`contact`.`network`, `contact`.`thumb`, `contact`.`self`, `contact`.`writable`,