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:42:33 +0200 |
commit | ecfb608518df223986c95b6405314f829bbf4878 (patch) | |
tree | 01e08afb115f344c6c0e6896cbc711ffd71ddbef /include | |
parent | acb8eeb85323a94bed85f3118fe20c1b5c9e2e7f (diff) | |
download | volse-hubzilla-ecfb608518df223986c95b6405314f829bbf4878.tar.gz volse-hubzilla-ecfb608518df223986c95b6405314f829bbf4878.tar.bz2 volse-hubzilla-ecfb608518df223986c95b6405314f829bbf4878.zip |
do not show channel manager and nav channel select if we are in a delegate session
Diffstat (limited to 'include')
-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 cd32126a1..2004f6ae3 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'); |