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); } /**