From ea0be8ea1a22abfdedae0d0c47677a9de44e08c0 Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 31 Aug 2016 17:49:22 -0700 Subject: provide techlevels in the pro server role. Should have no visible effect on other roles. --- include/widgets.php | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) (limited to 'include/widgets.php') diff --git a/include/widgets.php b/include/widgets.php index 9429df249..16582d084 100644 --- a/include/widgets.php +++ b/include/widgets.php @@ -594,14 +594,11 @@ function widget_settings_menu($arr) { ); } - // IF can go away when UNO export and import is fully functional - if(get_config('system','server_role') !== 'basic') { - $tabs[] = array( - 'label' => t('Export channel'), - 'url' => z_root() . '/uexport', - 'selected' => '' - ); - } + $tabs[] = array( + 'label' => t('Export channel'), + 'url' => z_root() . '/uexport', + 'selected' => '' + ); $tabs[] = array( 'label' => t('Connected apps'), @@ -609,7 +606,7 @@ function widget_settings_menu($arr) { 'selected' => ((argv(1) === 'oauth') ? 'active' : ''), ); - if(get_config('system','server_role') !== 'basic') { + if(get_account_techlevel() > 2) { $tabs[] = array( 'label' => t('Guest Access Tokens'), 'url' => z_root() . '/settings/tokens', -- cgit v1.2.3