aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2020-10-16 11:54:14 +0000
committerMario <mario@mariovavti.com>2020-10-16 11:54:14 +0000
commit5dc2f43d1d38d190cadbd8eb53227570277e69b1 (patch)
tree062825ea3842d7c1c91d7d5d4ed4ba0c5b1d2427 /include
parentf0acb9f01e0e2e130121dff435dea4a29f460d8e (diff)
downloadvolse-hubzilla-5dc2f43d1d38d190cadbd8eb53227570277e69b1.tar.gz
volse-hubzilla-5dc2f43d1d38d190cadbd8eb53227570277e69b1.tar.bz2
volse-hubzilla-5dc2f43d1d38d190cadbd8eb53227570277e69b1.zip
mark private forums in acl selector
Diffstat (limited to 'include')
-rw-r--r--include/acl_selectors.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/acl_selectors.php b/include/acl_selectors.php
index 30219a476..a3476439a 100644
--- a/include/acl_selectors.php
+++ b/include/acl_selectors.php
@@ -109,12 +109,12 @@ function populate_acl($defaults = null,$show_jotnets = true, $emptyACL_descripti
// Abuse this fact to decide if forums should be displayed or not.
if($dialog_description) {
$forums = get_forum_channels(local_channel(),1);
-
if($forums) {
$groups .= '<optgroup label = "' . t('Forums').'">';
foreach($forums as $f) {
+ $private = (($f['private_forum']) ? ' (' . t('Private Forum') . ')' : '');
$selected = (($single_group && $f['hash'] === $allow_cid[0]) ? ' selected = "selected" ' : '');
- $groups .= '<option id="^' . $f['abook_id'] . '" value="^' . $f['xchan_hash'] . '"' . $selected . '>' . $f['xchan_name'] . '</option>' . "\r\n";
+ $groups .= '<option id="^' . $f['abook_id'] . '" value="^' . $f['xchan_hash'] . '"' . $selected . '>' . $f['xchan_name'] . $private . '</option>' . "\r\n";
}
$groups .= '</optgroup>';
}