]> git.mxchange.org Git - friendica.git/blobdiff - mod/regmod.php
Merge branch 'master' of git://github.com/friendica/friendica
[friendica.git] / mod / regmod.php
old mode 100644 (file)
new mode 100755 (executable)
index 8e6a577..17e728b
@@ -1,6 +1,9 @@
 <?php
 
 function user_allow($hash) {
+
+       $a = get_app();
+
        $register = q("SELECT * FROM `register` WHERE `hash` = '%s' LIMIT 1",
                dbesc($hash)
        );
@@ -104,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 '';
        }