return a login form on some protoected pages if not logged in.

This commit is contained in:
friendica 2013-11-02 23:56:29 -07:00
parent 8eed3a1006
commit 9158909fa3
3 changed files with 5 additions and 5 deletions

View File

@ -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) {

View File

@ -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();

View File

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