From: Friendika Date: Mon, 31 Jan 2011 06:45:02 +0000 (-0800) Subject: limit privacy ACL's to networks which can handle privacy X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=d8877b88d6c26e29019312f02297411817692361;p=friendica.git limit privacy ACL's to networks which can handle privacy --- diff --git a/include/acl_selectors.php b/include/acl_selectors.php index d0952421ea..554782a826 100644 --- a/include/acl_selectors.php +++ b/include/acl_selectors.php @@ -30,7 +30,7 @@ function group_select($selname,$selclass,$preselected = false,$size = 4) { -function contact_select($selname, $selclass, $preselected = false, $size = 4, $privmail = false, $celeb = false) { +function contact_select($selname, $selclass, $preselected = false, $size = 4, $privmail = false, $celeb = false, $privatenet = false) { $o = ''; @@ -43,6 +43,10 @@ function contact_select($selname, $selclass, $preselected = false, $size = 4, $p $sql_extra .= sprintf(" AND `rel` = %d ", intval(REL_BUD)); } + if($privmail || $privatenet) { + $sql_extra .= " AND `network` IN ( 'dfrn' ) "; + } + if($privmail) $o .= "