diff options
author | git-marijus <mario@mariovavti.com> | 2017-08-10 11:41:00 +0200 |
---|---|---|
committer | git-marijus <mario@mariovavti.com> | 2017-08-10 11:41:00 +0200 |
commit | 9411732c1b0a4aa07528763381313adc7a775da6 (patch) | |
tree | da244750fa25fb0b1e45b4de534d51f68cf2507f /include/nav.php | |
parent | d1c7e789902a09b1ebdd9ae2e388a18f92467e43 (diff) | |
download | volse-hubzilla-9411732c1b0a4aa07528763381313adc7a775da6.tar.gz volse-hubzilla-9411732c1b0a4aa07528763381313adc7a775da6.tar.bz2 volse-hubzilla-9411732c1b0a4aa07528763381313adc7a775da6.zip |
do not show channel manager and nav channel select if we are in a delegate session
Diffstat (limited to 'include/nav.php')
-rw-r--r-- | include/nav.php | 12 |
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'); |