when public access is blocked, profile page should show login box

This commit is contained in:
Friendika 2011-04-21 18:39:07 -07:00
parent 9e19eef194
commit eeb3c13ad3

View file

@ -52,8 +52,7 @@ function profile_init(&$a) {
function profile_content(&$a, $update = 0) {
if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
notice( t('Public access denied.') . EOL);
return;
return login();
}