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 /Zotlabs/Module | |
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 'Zotlabs/Module')
-rw-r--r-- | Zotlabs/Module/Viewconnections.php | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/Zotlabs/Module/Viewconnections.php b/Zotlabs/Module/Viewconnections.php index 320a331d1..a0c293ddf 100644 --- a/Zotlabs/Module/Viewconnections.php +++ b/Zotlabs/Module/Viewconnections.php @@ -97,7 +97,6 @@ class Viewconnections extends \Zotlabs\Web\Controller { $perminfo['connperms'] .= t('Nothing'); } - $url = chanlink_hash($rr['xchan_hash']); if($url) { $contacts[] = array( @@ -111,13 +110,12 @@ class Viewconnections extends \Zotlabs\Web\Controller { 'sparkle' => '', 'itemurl' => $rr['url'], 'network' => '', - 'perminfo' => $perminfo, + 'perminfo' => (($is_owner) ? $perminfo : (($perminfo['connpermcount'] === 0) ? $perminfo : [])), 'oneway' => $oneway ); } } - - + if($_REQUEST['aj']) { if($contacts) { $o = replace_macros(get_markup_template('viewcontactsajax.tpl'),array( |