From 5fb7ea8dbd2d628fffc409c6bc78a76d603b5fcb Mon Sep 17 00:00:00 2001 From: zotlabs Date: Sun, 2 Apr 2017 20:35:45 -0700 Subject: fix connectDefaultShare generated js function, though it isn't obvious if we still use it. --- Zotlabs/Module/Connedit.php | 30 +++++++++++------------------- 1 file changed, 11 insertions(+), 19 deletions(-) (limited to 'Zotlabs') diff --git a/Zotlabs/Module/Connedit.php b/Zotlabs/Module/Connedit.php index 72bd3e86e..484e69b52 100644 --- a/Zotlabs/Module/Connedit.php +++ b/Zotlabs/Module/Connedit.php @@ -388,30 +388,22 @@ class Connedit extends \Zotlabs\Web\Controller { $section = ((array_key_exists('section',$_REQUEST)) ? $_REQUEST['section'] : ''); $channel = \App::get_channel(); - $my_perms = get_channel_default_perms(local_channel()); - $role = get_pconfig(local_channel(),'system','permissions_role'); - if($role) { - $x = \Zotlabs\Access\PermissionRoles::role_perms($role); - if($x['perms_connect']) - $my_perms = $x['perms_connect']; - } $yes_no = array(t('No'),t('Yes')); - if($my_perms) { - $o .= "\n"; } + $o .= " }\n\n"; if(argc() == 3) { -- cgit v1.2.3