mark connections where we do not have post_comments permissions with an no entry sign.

This commit is contained in:
Mario Vavti
2018-02-24 19:42:39 +01:00
parent f6d024cb3f
commit c618bfc607
10 changed files with 51 additions and 6 deletions

View File

@@ -69,8 +69,13 @@ class Viewconnections extends \Zotlabs\Web\Controller {
$contacts = array();
foreach($r as $rr) {
$oneway = false;
if(! intval(get_abconfig(\App::$profile['uid'],$rr['xchan_hash'],'their_perms','post_comments'))) {
$oneway = true;
}
$url = chanlink_hash($rr['xchan_hash']);
$url = chanlink_hash($rr['xchan_hash']);
if($url) {
$contacts[] = array(
'id' => $rr['abook_id'],
@@ -83,6 +88,7 @@ class Viewconnections extends \Zotlabs\Web\Controller {
'sparkle' => '',
'itemurl' => $rr['url'],
'network' => '',
'oneway' => $oneway
);
}
}