diff options
author | friendica <info@friendica.com> | 2015-03-10 02:23:14 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-03-10 02:23:14 -0700 |
commit | 98dffd77efbad934a26fb4abee9b3e42eeb7b6d2 (patch) | |
tree | d2b486cd467ddd6436b33eec3e106e25af188630 /mod/admin.php | |
parent | 4237e8052e938d22cafd81dd2a37cf1bfd511fac (diff) | |
download | volse-hubzilla-98dffd77efbad934a26fb4abee9b3e42eeb7b6d2.tar.gz volse-hubzilla-98dffd77efbad934a26fb4abee9b3e42eeb7b6d2.tar.bz2 volse-hubzilla-98dffd77efbad934a26fb4abee9b3e42eeb7b6d2.zip |
channel delegation
Diffstat (limited to 'mod/admin.php')
-rw-r--r-- | mod/admin.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/mod/admin.php b/mod/admin.php index daab6c9f3..5d8faf424 100644 --- a/mod/admin.php +++ b/mod/admin.php @@ -13,7 +13,7 @@ function admin_post(&$a){ logger('admin_post', LOGGER_DEBUG); - if(!is_site_admin()) { + if((!is_site_admin()) || ($_SESSION['delegate'])) { return; } @@ -79,7 +79,8 @@ function admin_post(&$a){ function admin_content(&$a) { logger('admin_content', LOGGER_DEBUG); - if(!is_site_admin()) { + + if((!is_site_admin()) || ($_SESSION['delegate'])) { return login(false); } |