aboutsummaryrefslogtreecommitdiffstats
path: root/include/nav.php
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-08-10 20:34:20 -0700
committerzotlabs <mike@macgirvin.com>2017-08-10 20:34:20 -0700
commit5f6eedcc1a6e719c2ac6fa93219f700e0d430b59 (patch)
tree0c744404bd2ccab4a22e431bf4a1f98933f3e8d2 /include/nav.php
parent7cec3f4dbf53d64ab5d7fd579e98bbdf56a7a605 (diff)
parent7892ed9e77949b0e05cfc4e1b8fd17e6188c5f01 (diff)
downloadvolse-hubzilla-5f6eedcc1a6e719c2ac6fa93219f700e0d430b59.tar.gz
volse-hubzilla-5f6eedcc1a6e719c2ac6fa93219f700e0d430b59.tar.bz2
volse-hubzilla-5f6eedcc1a6e719c2ac6fa93219f700e0d430b59.zip
Merge branch 'dev' of https://github.com/redmatrix/hubzilla into xdev_merge
Diffstat (limited to 'include/nav.php')
-rw-r--r--include/nav.php12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/nav.php b/include/nav.php
index f53a3eed5..76a8f8fb9 100644
--- a/include/nav.php
+++ b/include/nav.php
@@ -34,9 +34,11 @@ EOT;
intval($channel['channel_id'])
);
- $chans = q("select channel_name, channel_id from channel where channel_account_id = %d and channel_removed = 0 order by channel_name ",
- intval(get_account_id())
- );
+ if(! $_SESSION['delegate']) {
+ $chans = q("select channel_name, channel_id from channel where channel_account_id = %d and channel_removed = 0 order by channel_name ",
+ intval(get_account_id())
+ );
+ }
}
elseif(remote_channel())
$observer = App::get_observer();
@@ -196,7 +198,9 @@ EOT;
$nav['all_events']['all']=array('events', t('View events'), "", "");
$nav['all_events']['mark'] = array('', t('Mark all events seen'), '','');
- $nav['manage'] = array('manage', t('Channel Manager'), "", t('Manage Your Channels'),'manage_nav_btn');
+ if(! $_SESSION['delegate']) {
+ $nav['manage'] = array('manage', t('Channel Manager'), "", t('Manage Your Channels'),'manage_nav_btn');
+ }
$nav['settings'] = array('settings', t('Settings'),"", t('Account/Channel Settings'),'settings_nav_btn');