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
pull/2/head
Christian Boltz 12 years ago
parent d17fb42cde
commit 40011a1a98

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

Loading…
Cancel
Save