aboutsummaryrefslogtreecommitdiffstats
path: root/Zotlabs/Module/Network.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-05-09 06:53:31 +1000
committerredmatrix <git@macgirvin.com>2016-05-09 06:53:31 +1000
commit5ac262bd610097b0e756003c39bc9fad4df7c321 (patch)
tree0c3ef6ae7bd82e2b7337d8cb4b336faee89b7d59 /Zotlabs/Module/Network.php
parent2b77c9a74bf4393dd3894420e602e7212c29ba42 (diff)
parent09ef30feb0e6f38ee3de34a37270cf796850b3d4 (diff)
downloadvolse-hubzilla-5ac262bd610097b0e756003c39bc9fad4df7c321.tar.gz
volse-hubzilla-5ac262bd610097b0e756003c39bc9fad4df7c321.tar.bz2
volse-hubzilla-5ac262bd610097b0e756003c39bc9fad4df7c321.zip
Merge pull request #370 from Treer/permissions
ACL dialogs: Make the non-ACL-option description more accurate
Diffstat (limited to 'Zotlabs/Module/Network.php')
-rw-r--r--Zotlabs/Module/Network.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/Zotlabs/Module/Network.php b/Zotlabs/Module/Network.php
index 2badd7280..fdfa99c12 100644
--- a/Zotlabs/Module/Network.php
+++ b/Zotlabs/Module/Network.php
@@ -6,6 +6,7 @@ require_once('include/group.php');
require_once('include/contact_widgets.php');
require_once('include/conversation.php');
require_once('include/acl_selectors.php');
+require_once('include/PermissionDescription.php');
@@ -170,7 +171,7 @@ class Network extends \Zotlabs\Web\Controller {
'default_location' => $channel['channel_location'],
'nickname' => $channel['channel_address'],
'lockstate' => (($private_editing || $channel['channel_allow_cid'] || $channel['channel_allow_gid'] || $channel['channel_deny_cid'] || $channel['channel_deny_gid']) ? 'lock' : 'unlock'),
- 'acl' => populate_acl((($private_editing) ? $def_acl : $channel_acl), true, (($channel['channel_r_stream'] & PERMS_PUBLIC) ? t('Public') : ''), get_post_aclDialogDescription(), 'acl_dialog_post'),
+ 'acl' => populate_acl((($private_editing) ? $def_acl : $channel_acl), true, \PermissionDescription::fromGlobalPermission('view_stream'), get_post_aclDialogDescription(), 'acl_dialog_post'),
'bang' => (($private_editing) ? '!' : ''),
'visitor' => true,
'profile_uid' => local_channel(),