aboutsummaryrefslogtreecommitdiffstats
path: root/mod/settings.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/settings.php')
-rwxr-xr-xmod/settings.php12
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(