From 40011a1a9870cfe13aa2d307645def3d8a1549a1 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Mon, 28 May 2012 17:43:39 +0000 Subject: [PATCH] functions.inc.php: - authentication_require_role(): no longer use $CONF['postfix_admin_url'] https://sourceforge.net/tracker/?func=detail&aid=3039042&group_id=191583&atid=937964 git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1394 a1433add-5e2c-0410-b055-b7f2511e0802 --- functions.inc.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/functions.inc.php b/functions.inc.php index 37b4afb4..178e18a1 100644 --- a/functions.inc.php +++ b/functions.inc.php @@ -89,11 +89,8 @@ function authentication_require_role($role) { if(authentication_has_role($role)) { return True; } - if($role === 'user') { - header("Location: " . $CONF['postfix_admin_url'] . '/users/login.php'); - } else { - header("Location: " . $CONF['postfix_admin_url'] . "/login.php"); - } + + header("Location: ./login.php"); exit(0); } /**