From a190ebfde1ea6b8e1ebc8a0f6acb2a019aa369c3 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Thu, 22 Mar 2007 07:42:39 +0100 Subject: updater: render login form on access level violation (closes #123) --- update.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'update.php') diff --git a/update.php b/update.php index 27cd871f9..3851679ac 100644 --- a/update.php +++ b/update.php @@ -20,8 +20,8 @@ $owner_uid = $_SESSION["uid"]; if (!SINGLE_USER_MODE && $_SESSION["access_level"] < 10) { - print "

". - __("Error: your access level is insufficient to run this script.")."

"; + $_SESSION["login_error_msg"] = __("Your access level is insufficient to run this script."); + render_login_form($link); exit; } -- cgit v1.2.3-54-g00ecf