diff options
author | friendica <info@friendica.com> | 2015-03-10 02:23:14 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2015-03-10 02:23:14 -0700 |
commit | 98dffd77efbad934a26fb4abee9b3e42eeb7b6d2 (patch) | |
tree | d2b486cd467ddd6436b33eec3e106e25af188630 /mod/settings.php | |
parent | 4237e8052e938d22cafd81dd2a37cf1bfd511fac (diff) | |
download | volse-hubzilla-98dffd77efbad934a26fb4abee9b3e42eeb7b6d2.tar.gz volse-hubzilla-98dffd77efbad934a26fb4abee9b3e42eeb7b6d2.tar.bz2 volse-hubzilla-98dffd77efbad934a26fb4abee9b3e42eeb7b6d2.zip |
channel delegation
Diffstat (limited to 'mod/settings.php')
-rw-r--r-- | mod/settings.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/mod/settings.php b/mod/settings.php index 595878543..afc05f095 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -19,6 +19,9 @@ function settings_init(&$a) { if(! local_channel()) return; + if($_SESSION['delegate']) + return; + $a->profile_uid = local_channel(); // default is channel settings in the absence of other arguments @@ -39,6 +42,9 @@ function settings_post(&$a) { if(! local_channel()) return; + if($_SESSION['delegate']) + return; + $channel = $a->get_channel(); logger('mod_settings: ' . print_r($_REQUEST,true)); @@ -550,14 +556,14 @@ function settings_post(&$a) { } -if(! function_exists('settings_content')) { + function settings_content(&$a) { $o = ''; nav_set_selected('settings'); - if(! local_channel()) { + if((! local_channel()) || ($_SESSION['delegate'])) { notice( t('Permission denied.') . EOL ); return login(); } @@ -1137,5 +1143,5 @@ function settings_content(&$a) { return $o; } -}} +} |