]> git.mxchange.org Git - friendica.git/commitdiff
do not under any circumstances allow a delegated forum admin to access the site admin...
authorfriendica <info@friendica.com>
Fri, 17 Feb 2012 07:50:57 +0000 (23:50 -0800)
committerfriendica <info@friendica.com>
Fri, 17 Feb 2012 07:50:57 +0000 (23:50 -0800)
mod/admin.php

index e444040973a996812daa8e65d8de834b043b5285..c79af8d5ba33b6e6f418361f2822f65c7e1fd61b 100755 (executable)
@@ -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
         */