diff options
author | M. Dent <dentm42@gmail.com> | 2018-09-29 00:17:55 +0200 |
---|---|---|
committer | M. Dent <dentm42@gmail.com> | 2018-09-29 00:17:55 +0200 |
commit | 5f992ffe154ed9e2b225c9a1b3d7c47d39e41d34 (patch) | |
tree | b714359bdc9c056376c6f3780e8edb0e066bf73f /include/account.php | |
parent | 2904e58a9fea6441202d1f9f7a3304a2d2b1429c (diff) | |
download | volse-hubzilla-5f992ffe154ed9e2b225c9a1b3d7c47d39e41d34.tar.gz volse-hubzilla-5f992ffe154ed9e2b225c9a1b3d7c47d39e41d34.tar.bz2 volse-hubzilla-5f992ffe154ed9e2b225c9a1b3d7c47d39e41d34.zip |
Remove servicelevel logic
Diffstat (limited to 'include/account.php')
-rw-r--r-- | include/account.php | 13 |
1 files changed, 3 insertions, 10 deletions
diff --git a/include/account.php b/include/account.php index 51118c3c5..2ab99ce19 100644 --- a/include/account.php +++ b/include/account.php @@ -124,7 +124,7 @@ function account_store_lowlevel($arr) { 'account_expires' => ((array_key_exists('account_expires',$arr)) ? $arr['account_expires'] : '0001-01-01 00:00:00'), 'account_expire_notified' => ((array_key_exists('account_expire_notified',$arr)) ? $arr['account_expire_notified'] : '0001-01-01 00:00:00'), 'account_service_class' => ((array_key_exists('account_service_class',$arr)) ? $arr['account_service_class'] : ''), - 'account_level' => ((array_key_exists('account_level',$arr)) ? $arr['account_level'] : '0'), + 'account_level' => '5', 'account_password_changed' => ((array_key_exists('account_password_changed',$arr)) ? $arr['account_password_changed'] : '0001-01-01 00:00:00') ]; @@ -215,7 +215,7 @@ function create_account($arr) { 'account_created' => datetime_convert(), 'account_flags' => intval($flags), 'account_roles' => intval($roles), - 'account_level' => intval($techlevel), + 'account_level' => 5, 'account_expires' => $expires, 'account_service_class' => $default_service_class ] @@ -821,13 +821,6 @@ function upgrade_bool_message($bbcode = false) { function get_account_techlevel($account_id = 0) { - if(! $account_id) { - $x = \App::get_account(); - } - else { - $x = get_account_by_id($account_id); - } - - return (($x) ? intval($x['account_level']) : 0); + return (5); } |