]> git.mxchange.org Git - friendica.git/commitdiff
a couple more items to make sure forum delegates can't access if the forum login...
authorfriendica <info@friendica.com>
Fri, 17 Feb 2012 07:58:07 +0000 (23:58 -0800)
committerfriendica <info@friendica.com>
Fri, 17 Feb 2012 07:58:07 +0000 (23:58 -0800)
mod/directory.php
mod/regmod.php

index 5f00b4f5a4a9ced5703cf8f26cd22cdb9f82390d..962188945fd1c8bebfdb6975a1fa26c2eb10d440 100755 (executable)
@@ -26,6 +26,8 @@ function directory_post(&$a) {
 function directory_content(&$a) {
 
        $everything = (($a->argc > 1 && $a->argv[1] === 'all' && is_site_admin()) ? true : false);
+       if(x($_SESSION,'submanage') && intval($_SESSION['submanage']))
+               $everything = false;
 
        if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
                notice( t('Public access denied.') . EOL);
index 76ea4062ede8becd5789b1b54a8f3324ce4148ee..17e728ba2d16266531c791316710e0403aae068d 100755 (executable)
@@ -107,7 +107,7 @@ function regmod_content(&$a) {
                return $o;
        }
 
-       if(!is_site_admin()) {
+       if((!is_site_admin()) || (x($_SESSION,'submanage') && intval($_SESSION['submanage']))) {
                notice( t('Permission denied.') . EOL);
                return '';
        }