Show login form when login is required
This commit is contained in:
committed by
Chris Morgan
parent
70e4306e2b
commit
734a4f8a1f
@@ -12,8 +12,10 @@ $oUser = new User($_SESSION['current']->iUserId);
|
||||
|
||||
/* Restrict error to logged-in users */
|
||||
if(!$oUser->isLoggedIn())
|
||||
util_show_error_page_and_exit("You need to be <a href=\"".login_url().
|
||||
"\">logged in</a>.");
|
||||
{
|
||||
login_form();
|
||||
exit;
|
||||
}
|
||||
|
||||
|
||||
$oRecipient = new User($aClean['iRecipientId']);
|
||||
|
||||
Reference in New Issue
Block a user