From 4c89f5d3979eddd49d84de11e62e6c918e4b72cc Mon Sep 17 00:00:00 2001 From: redmatrix Date: Wed, 7 Sep 2016 21:02:57 -0700 Subject: pro: better handling of system techlevel settings. system.techlevel = initial techlevel for all new accounts system.techlevel_lock = if 1, account techlevel cannot be changed this allows accounts to exist with alternate techlevels than a locked default, but they need to be set by the administrator. By default with no config settings, everybody starts at 0 but can set their own level. --- Zotlabs/Module/Settings/Account.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Zotlabs/Module') diff --git a/Zotlabs/Module/Settings/Account.php b/Zotlabs/Module/Settings/Account.php index 3cc9bd135..50bbc7be4 100644 --- a/Zotlabs/Module/Settings/Account.php +++ b/Zotlabs/Module/Settings/Account.php @@ -110,9 +110,8 @@ class Account { '5' => t('Wizard - I probably know more than you do') ]; - $def_techlevel = get_config('system','techlevel'); - if($def_techlevel === false) - $def_techlevel = \App::$account['account_level']; + + $def_techlevel = \App::$account['account_level']; $techlock = get_config('system','techlevel_lock'); $tpl = get_markup_template("settings_account.tpl"); -- cgit v1.2.3