Don't set widgets if you're not a local user.

This commit is contained in:
Thomas Willingham 2013-11-02 21:11:43 +00:00
parent b95d4c1186
commit ced0a9ab74
3 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,9 @@ function connections_init(&$a) {
function connections_aside(&$a) {
if (! local_user())
return;
if(x($a->data,'abook')) {
$a->set_widget('vcard',vcard_from_xchan($a->data['abook'],$a->get_observer()));
}

View File

@ -9,6 +9,9 @@ require_once('include/Contact.php');
function message_aside(&$a) {
if (! local_user())
return;
$a->set_widget('msgaside',replace_macros(get_markup_template('message_side.tpl'), array(
'$tabs'=> array(),

View File

@ -22,6 +22,8 @@ function settings_init(&$a) {
function settings_aside(&$a) {
if (! local_user())
return;
// default is channel settings in the absence of other arguments