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.
This commit is contained in:
redmatrix 2016-09-07 21:02:57 -07:00
parent c2f83639d4
commit 4c89f5d397

View File

@ -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");