diff options
author | friendica <info@friendica.com> | 2012-01-26 16:52:12 -0800 |
---|---|---|
committer | friendica <info@friendica.com> | 2012-01-26 16:52:12 -0800 |
commit | 167ab537b51cf76016e89c705aca812968cb6b82 (patch) | |
tree | 38da81c80f3b3288fb2a875781254ee8d4026a0c /mod/settings.php | |
parent | 10f768630ba5f77e9b7729df437690a767387319 (diff) | |
download | volse-hubzilla-167ab537b51cf76016e89c705aca812968cb6b82.tar.gz volse-hubzilla-167ab537b51cf76016e89c705aca812968cb6b82.tar.bz2 volse-hubzilla-167ab537b51cf76016e89c705aca812968cb6b82.zip |
backend for delegating forums
Diffstat (limited to 'mod/settings.php')
-rwxr-xr-x | mod/settings.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mod/settings.php b/mod/settings.php index 8ca0bb7f8..c61d5c227 100755 --- a/mod/settings.php +++ b/mod/settings.php @@ -39,10 +39,11 @@ EOT; function settings_post(&$a) { - if(! local_user()) { - notice( t('Permission denied.') . EOL); + if(! local_user()) + return; + + if(x($_SESSION,'submanage') && intval($_SESSION['submanage'])) return; - } if(count($a->user) && x($a->user,'uid') && $a->user['uid'] != local_user()) { notice( t('Permission denied.') . EOL); @@ -403,6 +404,11 @@ function settings_content(&$a) { notice( t('Permission denied.') . EOL ); return; } + + if(x($_SESSION,'submanage') && intval($_SESSION['submanage'])) { + notice( t('Permission denied.') . EOL ); + return; + } $tabs = array( array( |