Merge pull request #595 from fermionic/20130127-profile-permissions

don't block private posts to logged in users on the local hub
This commit is contained in:
friendica 2013-01-28 13:55:55 -08:00
commit a804f2b5b5

View file

@ -266,14 +266,8 @@ function item_permissions_sql($owner_id,$remote_verified = false,$groups = null)
* Profile owner - everything is visible
*/
if($local_user) {
if($local_user == $owner_id) {
$sql = '';
}
else {
/* logged in user can see hidden walls and feeds that are blocked to unknown users (private == 2) */
$sql = " AND private != 1 ";
}
if($local_user && ($local_user == $owner_id)) {
$sql = '';
}
/**