Don't set widgets if you're not a local user.
This commit is contained in:
parent
b95d4c1186
commit
ced0a9ab74
@ -32,6 +32,9 @@ function connections_init(&$a) {
|
|||||||
|
|
||||||
function connections_aside(&$a) {
|
function connections_aside(&$a) {
|
||||||
|
|
||||||
|
if (! local_user())
|
||||||
|
return;
|
||||||
|
|
||||||
if(x($a->data,'abook')) {
|
if(x($a->data,'abook')) {
|
||||||
$a->set_widget('vcard',vcard_from_xchan($a->data['abook'],$a->get_observer()));
|
$a->set_widget('vcard',vcard_from_xchan($a->data['abook'],$a->get_observer()));
|
||||||
}
|
}
|
||||||
|
@ -9,6 +9,9 @@ require_once('include/Contact.php');
|
|||||||
|
|
||||||
function message_aside(&$a) {
|
function message_aside(&$a) {
|
||||||
|
|
||||||
|
if (! local_user())
|
||||||
|
return;
|
||||||
|
|
||||||
$a->set_widget('msgaside',replace_macros(get_markup_template('message_side.tpl'), array(
|
$a->set_widget('msgaside',replace_macros(get_markup_template('message_side.tpl'), array(
|
||||||
'$tabs'=> array(),
|
'$tabs'=> array(),
|
||||||
|
|
||||||
|
@ -22,6 +22,8 @@ function settings_init(&$a) {
|
|||||||
|
|
||||||
function settings_aside(&$a) {
|
function settings_aside(&$a) {
|
||||||
|
|
||||||
|
if (! local_user())
|
||||||
|
return;
|
||||||
|
|
||||||
// default is channel settings in the absence of other arguments
|
// default is channel settings in the absence of other arguments
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user