From 5dc2f43d1d38d190cadbd8eb53227570277e69b1 Mon Sep 17 00:00:00 2001 From: Mario Date: Fri, 16 Oct 2020 11:54:14 +0000 Subject: mark private forums in acl selector --- include/acl_selectors.php | 4 ++-- 1 file 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 .= ''; foreach($forums as $f) { + $private = (($f['private_forum']) ? ' (' . t('Private Forum') . ')' : ''); $selected = (($single_group && $f['hash'] === $allow_cid[0]) ? ' selected = "selected" ' : ''); - $groups .= '' . "\r\n"; + $groups .= '' . "\r\n"; } $groups .= ''; } -- cgit v1.2.3