You've already forked postfixadmin
mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2025-08-09 05:02:44 +03:00
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
This commit is contained in:
@@ -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);
|
||||
}
|
||||
/**
|
||||
|
Reference in New Issue
Block a user