diff options
author | friendica <info@friendica.com> | 2012-02-16 23:50:57 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-02-16 23:50:57 -0800 |
commit | 0500fc2826e01d0570139fe5218f223d3a918970 (patch) | |
tree | 32f1e27ed37dfffa0f243db0cb20b8bc4e8c8b45 /mod | |
parent | 48f5bd492de7acb021b9065beb2586391efb3c9e (diff) | |
download | volse-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')
-rwxr-xr-x | mod/admin.php | 7 |
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 */ |