diff options
author | zotlabs <mike@macgirvin.com> | 2017-05-29 13:50:02 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-05-29 13:50:02 -0700 |
commit | 4fcfcc81172ebdfa4a27d3bca94bffe97356f600 (patch) | |
tree | 78a53b004556fa1064e9213008e68d897a296fe2 /include/account.php | |
parent | b15a5f03e61eeef2086d87f497464b00ada3798e (diff) | |
download | volse-hubzilla-4fcfcc81172ebdfa4a27d3bca94bffe97356f600.tar.gz volse-hubzilla-4fcfcc81172ebdfa4a27d3bca94bffe97356f600.tar.bz2 volse-hubzilla-4fcfcc81172ebdfa4a27d3bca94bffe97356f600.zip |
start deprecation of server_role
Diffstat (limited to 'include/account.php')
-rw-r--r-- | include/account.php | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/include/account.php b/include/account.php index c188ce0d7..499f7303a 100644 --- a/include/account.php +++ b/include/account.php @@ -424,7 +424,7 @@ function account_allow($hash) { pop_lang(); - if(get_config('system','auto_channel_create') || get_config('system','server_role') === 'basic') + if(get_config('system','auto_channel_create')) auto_channel_create($register[0]['uid']); if ($res) { @@ -528,7 +528,7 @@ function account_approve($hash) { - if(get_config('system','auto_channel_create') || get_config('system','server_role') === 'basic') + if(get_config('system','auto_channel_create')) auto_channel_create($register[0]['uid']); else { $_SESSION['login_return_url'] = 'new_channel'; @@ -772,12 +772,6 @@ function upgrade_bool_message($bbcode = false) { function get_account_techlevel($account_id = 0) { - $role = \Zotlabs\Lib\System::get_server_role(); - if($role == 'basic') - return 0; - if($role == 'standard') - return 5; - if(! $account_id) { $x = \App::get_account(); } |