aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <mike@macgirvin.com>2016-09-07 21:02:57 -0700
committerredmatrix <mike@macgirvin.com>2016-09-07 21:02:57 -0700
commit4c89f5d3979eddd49d84de11e62e6c918e4b72cc (patch)
treef99ba0bbf879bdd7c35c465d681fcece9bfe674c
parentc2f83639d49c4ff49acdaa5c6f3dd0a3c1edbdf9 (diff)
downloadvolse-hubzilla-4c89f5d3979eddd49d84de11e62e6c918e4b72cc.tar.gz
volse-hubzilla-4c89f5d3979eddd49d84de11e62e6c918e4b72cc.tar.bz2
volse-hubzilla-4c89f5d3979eddd49d84de11e62e6c918e4b72cc.zip
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.
-rw-r--r--Zotlabs/Module/Settings/Account.php5
1 files changed, 2 insertions, 3 deletions
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");