return a login form on some protoected pages if not logged in.
This commit is contained in:
parent
8eed3a1006
commit
9158909fa3
@ -32,8 +32,8 @@ function connections_init(&$a) {
|
|||||||
|
|
||||||
function connections_aside(&$a) {
|
function connections_aside(&$a) {
|
||||||
|
|
||||||
if (! local_user())
|
if (! local_user())
|
||||||
return;
|
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()));
|
||||||
@ -175,7 +175,7 @@ function connections_content(&$a) {
|
|||||||
|
|
||||||
if(! local_user()) {
|
if(! local_user()) {
|
||||||
notice( t('Permission denied.') . EOL);
|
notice( t('Permission denied.') . EOL);
|
||||||
return;
|
return login();
|
||||||
}
|
}
|
||||||
|
|
||||||
if(argc() == 3) {
|
if(argc() == 3) {
|
||||||
|
@ -205,7 +205,7 @@ function message_content(&$a) {
|
|||||||
|
|
||||||
if(! local_user()) {
|
if(! local_user()) {
|
||||||
notice( t('Permission denied.') . EOL);
|
notice( t('Permission denied.') . EOL);
|
||||||
return;
|
return login();
|
||||||
}
|
}
|
||||||
|
|
||||||
$channel = $a->get_channel();
|
$channel = $a->get_channel();
|
||||||
|
@ -625,7 +625,7 @@ function settings_content(&$a) {
|
|||||||
|
|
||||||
if(! local_user()) {
|
if(! local_user()) {
|
||||||
notice( t('Permission denied.') . EOL );
|
notice( t('Permission denied.') . EOL );
|
||||||
return;
|
return login();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user