show email contacts in acl selector
This commit is contained in:
parent
b81eefbffb
commit
4f952979d5
1 changed files with 5 additions and 2 deletions
|
@ -57,9 +57,12 @@ function contact_select($selname, $selclass, $preselected = false, $size = 4, $p
|
||||||
$sql_extra .= sprintf(" AND `rel` = %d ", intval(REL_BUD));
|
$sql_extra .= sprintf(" AND `rel` = %d ", intval(REL_BUD));
|
||||||
}
|
}
|
||||||
|
|
||||||
if($privmail || $privatenet) {
|
if($privmail) {
|
||||||
$sql_extra .= " AND `network` IN ( 'dfrn' ) ";
|
$sql_extra .= " AND `network` IN ( 'dfrn' ) ";
|
||||||
}
|
}
|
||||||
|
elseif($privatenet) {
|
||||||
|
$sql_extra .= " AND `network` IN ( 'dfrn', 'mail' ) ";
|
||||||
|
}
|
||||||
|
|
||||||
if($privmail)
|
if($privmail)
|
||||||
$o .= "<select name=\"$selname\" id=\"$selclass\" class=\"$selclass\" size=\"$size\" >\r\n";
|
$o .= "<select name=\"$selname\" id=\"$selclass\" class=\"$selclass\" size=\"$size\" >\r\n";
|
||||||
|
|
Loading…
Reference in a new issue