aboutsummaryrefslogtreecommitdiffstats
path: root/mod/admin.php
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2012-02-16 23:50:57 -0800
committerfriendica <info@friendica.com>2012-02-16 23:50:57 -0800
commit0500fc2826e01d0570139fe5218f223d3a918970 (patch)
tree32f1e27ed37dfffa0f243db0cb20b8bc4e8c8b45 /mod/admin.php
parent48f5bd492de7acb021b9065beb2586391efb3c9e (diff)
downloadvolse-hubzilla-0500fc2826e01d0570139fe5218f223d3a918970.tar.gz
volse-hubzilla-0500fc2826e01d0570139fe5218f223d3a918970.tar.bz2
volse-hubzilla-0500fc2826e01d0570139fe5218f223d3a918970.zip
do not under any circumstances allow a delegated forum admin to access the site admin page.
Diffstat (limited to 'mod/admin.php')
-rwxr-xr-xmod/admin.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/mod/admin.php b/mod/admin.php
index e44404097..c79af8d5b 100755
--- a/mod/admin.php
+++ b/mod/admin.php
@@ -9,6 +9,10 @@ function admin_post(&$a){
if(!is_site_admin()) {
return;
}
+
+
+ if(x($_SESSION,'submanage') && intval($_SESSION['submanage']))
+ return;
// urls
if ($a->argc > 1){
@@ -50,6 +54,9 @@ function admin_content(&$a) {
return login(false);
}
+ if(x($_SESSION,'submanage') && intval($_SESSION['submanage']))
+ return;
+
/**
* Side bar links
*/