aboutsummaryrefslogtreecommitdiffstats
path: root/include/account.php
diff options
context:
space:
mode:
authorM. Dent <dentm42@gmail.com>2018-09-29 00:17:55 +0200
committerM. Dent <dentm42@gmail.com>2018-09-29 00:17:55 +0200
commitba4a8aa7623038fd9926b58d826e7cb733176b48 (patch)
treeb714359bdc9c056376c6f3780e8edb0e066bf73f /include/account.php
parent2904e58a9fea6441202d1f9f7a3304a2d2b1429c (diff)
parent5f992ffe154ed9e2b225c9a1b3d7c47d39e41d34 (diff)
downloadvolse-hubzilla-ba4a8aa7623038fd9926b58d826e7cb733176b48.tar.gz
volse-hubzilla-ba4a8aa7623038fd9926b58d826e7cb733176b48.tar.bz2
volse-hubzilla-ba4a8aa7623038fd9926b58d826e7cb733176b48.zip
Merge branch 'remove-servicelevel-logic' into 'dev'
Remove servicelevel logic See merge request hubzilla/core!1291
Diffstat (limited to 'include/account.php')
-rw-r--r--include/account.php13
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);
}