aboutsummaryrefslogtreecommitdiffstats
path: root/mod/admin.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2015-03-10 02:23:14 -0700
committerfriendica <info@friendica.com>2015-03-10 02:23:14 -0700
commit98dffd77efbad934a26fb4abee9b3e42eeb7b6d2 (patch)
treed2b486cd467ddd6436b33eec3e106e25af188630 /mod/admin.php
parent4237e8052e938d22cafd81dd2a37cf1bfd511fac (diff)
downloadvolse-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.php5
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);
}