channel delegation

This commit is contained in:
friendica
2015-03-10 02:23:14 -07:00
parent 4237e8052e
commit 98dffd77ef
8 changed files with 117 additions and 23 deletions

View File

@@ -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;
}
}}
}