- added missing "global $CONF" in authentication_require_role

git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@94 a1433add-5e2c-0410-b055-b7f2511e0802
postfixadmin-2.3
Christian Boltz 17 years ago
parent 97767d4800
commit 8e88a41691

@ -75,6 +75,7 @@ function authentication_has_role($role) {
* Note, user < admin < global-admin
*/
function authentication_require_role($role) {
global $CONF;
// redirect to appropriate page?
if(authentication_has_role($role)) {
return True;
@ -215,6 +216,7 @@ function check_email ($email)
if (checkdnsrr($domain,'A')) return true;
if (checkdnsrr($domain,'MX')) return true;
# TODO: different error message for non-existing domains (instead of "email is invalid")
return false;
}

Loading…
Cancel
Save