aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-06-27 19:04:00 -0700
committerredmatrix <git@macgirvin.com>2016-06-27 19:04:00 -0700
commitb155e93ab134759f3d31a509d197916a5af84adb (patch)
treefc37281f1a73cfe8186d319f2a197b9df74b191c /include/nav.php
parent3704ff57cb65dce6ddd17136580e3bf82e7d97f2 (diff)
downloadvolse-hubzilla-b155e93ab134759f3d31a509d197916a5af84adb.tar.gz
volse-hubzilla-b155e93ab134759f3d31a509d197916a5af84adb.tar.bz2
volse-hubzilla-b155e93ab134759f3d31a509d197916a5af84adb.zip
add letsencrypt x3 intermediate cert and new cert file, improve UX of new registrations
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/include/nav.php b/include/nav.php
index 70faec598..21e9d2c3a 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -126,7 +126,7 @@ EOT;
$nav['lock'] = array('logout','','lock',
sprintf( t('%s - click to logout'), $observer['xchan_addr']));
}
- else {
+ elseif(! $_SESSION['authenticated']) {
$nav['loginmenu'][] = Array('rmagic',t('Remote authentication'),'',t('Click to authenticate to your home hub'),'rmagic_nav_btn');
}
@@ -143,7 +143,7 @@ EOT;
if((App::$module != 'home') && (! (local_channel())))
$nav['home'] = array($homelink, t('Home'), "", t('Home Page'),'home_nav_btn');
- if((App::$config['system']['register_policy'] == REGISTER_OPEN) && (! local_channel()) && (! remote_channel()))
+ if((App::$config['system']['register_policy'] == REGISTER_OPEN) && (! $_SESSION['authenticated']))
$nav['register'] = array('register',t('Register'), "", t('Create an account'),'register_nav_btn');
if(! get_config('system','hide_help')) {