diff options
author | Mario <mario@mariovavti.com> | 2020-05-04 09:24:22 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2020-05-04 09:24:22 +0000 |
commit | 46242aeaae084191244008529703c964fa5b2d53 (patch) | |
tree | fa38ce637477d09ce33c5ff43037d559c648130b /include/text.php | |
parent | ad040a0b111539d6cdc4922539d550e21500be04 (diff) | |
download | volse-hubzilla-46242aeaae084191244008529703c964fa5b2d53.tar.gz volse-hubzilla-46242aeaae084191244008529703c964fa5b2d53.tar.bz2 volse-hubzilla-46242aeaae084191244008529703c964fa5b2d53.zip |
display complete perminfo only to owner
Diffstat (limited to 'include/text.php')
-rw-r--r-- | include/text.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/text.php b/include/text.php index 6f56a0754..0202061ab 100644 --- a/include/text.php +++ b/include/text.php @@ -1010,7 +1010,7 @@ function contact_block() { if(count($r)) { $contacts = t('Connections'); - $micropro = Array(); + $micropro = []; foreach($r as $rr) { // There is no setting to discover if you are bi-directionally connected @@ -1037,6 +1037,9 @@ function contact_block() { $rr['perminfo']['connperms'] .= t('Nothing'); } + if($is_owner && $rr['perminfo']['connpermcount'] !== 0) + unset($rr['perminfo']); + $micropro[] = micropro($rr,true,'mpfriend'); } } @@ -1047,7 +1050,7 @@ function contact_block() { '$contacts' => $contacts, '$nickname' => App::$profile['channel_address'], '$viewconnections' => (($total > $shown) ? sprintf(t('View all %s connections'),$total) : ''), - '$micropro' => $micropro, + '$micropro' => $micropro )); $arr = ['contacts' => $r, 'output' => $o]; |