diff options
author | friendica <info@friendica.com> | 2013-11-02 23:56:29 -0700 |
---|---|---|
committer | friendica <info@friendica.com> | 2013-11-02 23:56:29 -0700 |
commit | 9158909fa3e938d04ebf06d2c2dba9417b36ffa6 (patch) | |
tree | 146c2f621f8b9e5227cf3c0a58d7fefd0f7ad694 | |
parent | 8eed3a10062818dd30f339139074be8e721546d5 (diff) | |
download | volse-hubzilla-9158909fa3e938d04ebf06d2c2dba9417b36ffa6.tar.gz volse-hubzilla-9158909fa3e938d04ebf06d2c2dba9417b36ffa6.tar.bz2 volse-hubzilla-9158909fa3e938d04ebf06d2c2dba9417b36ffa6.zip |
return a login form on some protoected pages if not logged in.
-rw-r--r-- | mod/connections.php | 6 | ||||
-rw-r--r-- | mod/message.php | 2 | ||||
-rw-r--r-- | mod/settings.php | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/mod/connections.php b/mod/connections.php index efdf0fd55..1ad9fedbc 100644 --- a/mod/connections.php +++ b/mod/connections.php @@ -32,8 +32,8 @@ function connections_init(&$a) { function connections_aside(&$a) { -if (! local_user()) - return; + if (! local_user()) + return; if(x($a->data,'abook')) { $a->set_widget('vcard',vcard_from_xchan($a->data['abook'],$a->get_observer())); @@ -175,7 +175,7 @@ function connections_content(&$a) { if(! local_user()) { notice( t('Permission denied.') . EOL); - return; + return login(); } if(argc() == 3) { diff --git a/mod/message.php b/mod/message.php index bd2545ea5..a4d73e6b0 100644 --- a/mod/message.php +++ b/mod/message.php @@ -205,7 +205,7 @@ function message_content(&$a) { if(! local_user()) { notice( t('Permission denied.') . EOL); - return; + return login(); } $channel = $a->get_channel(); diff --git a/mod/settings.php b/mod/settings.php index ab3ac4f12..4e122607b 100644 --- a/mod/settings.php +++ b/mod/settings.php @@ -625,7 +625,7 @@ function settings_content(&$a) { if(! local_user()) { notice( t('Permission denied.') . EOL ); - return; + return login(); } |