1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 20:00:37 +02:00

Admin-UI: Added an automatic fallback. When the user does not have access to the default route the dispatcher will now look for the first available access route and display it as the default. Also, renamed checkRouteAccess() to hasRouteAccess() and renamed checkModeAccess() to hasModeAccess().

This commit is contained in:
Cameron
2020-03-11 17:04:51 -07:00
parent 80a6655af9
commit eb96f14fe9
2 changed files with 55 additions and 10 deletions

View File

@@ -231,7 +231,10 @@ class e107Email extends PHPMailer
foreach (array('mailer', 'smtp_server', 'smtp_username', 'smtp_password', 'smtp_port', 'sendmail', 'siteadminemail', 'siteadmin') as $k)
{
if (!isset($overrides[$k])) $overrides[$k] = $pref[$k];
if (!isset($overrides[$k]))
{
$overrides[$k] = varset($pref[$k]);
}
}
if(strpos($overrides['smtp_server'],':')!== false)