diff options
author | redmatrix <git@macgirvin.com> | 2016-08-07 17:29:35 -0700 |
---|---|---|
committer | redmatrix <git@macgirvin.com> | 2016-08-07 17:29:35 -0700 |
commit | 5243dd153bed7fe79188478922a58e8057be3f3e (patch) | |
tree | 92ca6142a60f235cf70c4a31cda0b7ffc6d68c86 /Zotlabs/Module/Register.php | |
parent | e1659b0725c275c2ba5f38a02a0f3fbcec145519 (diff) | |
download | volse-hubzilla-5243dd153bed7fe79188478922a58e8057be3f3e.tar.gz volse-hubzilla-5243dd153bed7fe79188478922a58e8057be3f3e.tar.bz2 volse-hubzilla-5243dd153bed7fe79188478922a58e8057be3f3e.zip |
use config system.server_role and deprecate 'UNO'
Diffstat (limited to 'Zotlabs/Module/Register.php')
-rw-r--r-- | Zotlabs/Module/Register.php | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/Zotlabs/Module/Register.php b/Zotlabs/Module/Register.php index 45123b88d..4cdd27001 100644 --- a/Zotlabs/Module/Register.php +++ b/Zotlabs/Module/Register.php @@ -151,7 +151,7 @@ class Register extends \Zotlabs\Web\Controller { $new_channel = false; $next_page = 'new_channel'; - if(get_config('system','auto_channel_create') || UNO) { + if(get_config('system','auto_channel_create') || get_config('system','server_role') == 'basic') { $new_channel = auto_channel_create($result['account']['account_id']); if($new_channel['success']) { $channel_id = $new_channel['channel']['channel_id']; @@ -234,9 +234,12 @@ class Register extends \Zotlabs\Web\Controller { $privacy_role = ((x($_REQUEST,'permissions_role')) ? $_REQUEST['permissions_role'] : ""); $role = array('permissions_role' , t('Channel role and privacy'), ($privacy_role) ? $privacy_role : 'social', t('Select a channel role with your privacy requirements.') . ' <a href="help/roles" target="_blank">' . t('Read more about roles') . '</a>',get_roles()); $tos = array('tos', $label_tos, '', '', array(t('no'),t('yes'))); - - $auto_create = ((UNO) || (get_config('system','auto_channel_create')) ? true : false); - $default_role = ((UNO) ? 'social' : get_config('system','default_permissions_role')); + + $server_role = get_config('system','server_role'); + + + $auto_create = (($server_role == 'basic') || (get_config('system','auto_channel_create')) ? true : false); + $default_role = (($server_role == 'basic') ? 'social' : get_config('system','default_permissions_role')); require_once('include/bbcode.php'); |