From 00ae6bdac6062594d16870dbd9ca0593f534198e Mon Sep 17 00:00:00 2001 From: redmatrix Date: Sun, 7 Feb 2016 21:06:17 -0800 Subject: [PATCH] a few tweaks to uno settings page to allow a default ACL to be created --- mod/settings.php | 2 ++ view/tpl/settings.tpl | 7 ++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/mod/settings.php b/mod/settings.php index eea3d9995..3ca2d1218 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -1013,6 +1013,7 @@ function settings_content(&$a) { $permissions_role = 'custom'; $permissions_set = (($permissions_role != 'custom') ? true : false); + $vnotify = get_pconfig(local_channel(),'system','vnotify'); $always_show_in_notices = get_pconfig(local_channel(),'system','always_show_in_notices'); if($vnotify === false) @@ -1037,6 +1038,7 @@ function settings_content(&$a) { '$h_prv' => t('Security and Privacy Settings'), '$permissions_set' => $permissions_set, + '$server_role' => get_server_role(), '$perms_set_msg' => t('Your permissions are already configured. Click to view/adjust'), '$hide_presence' => array('hide_presence', t('Hide my online presence'),$hide_presence, t('Prevents displaying in your profile that you are online'), $yes_no), diff --git a/view/tpl/settings.tpl b/view/tpl/settings.tpl index af5f222fe..820ffd711 100755 --- a/view/tpl/settings.tpl +++ b/view/tpl/settings.tpl @@ -42,8 +42,12 @@
+ {{if $server_role != 'basic'}} {{include file="field_select_grouped.tpl" field=$role}} -
+ {{/if}} +
+ + {{if $server_role != 'basic'}}
@@ -65,6 +69,7 @@
+ {{/if}}
{{$aclselect}}