1
0

fix 'password' route option not working

This commit is contained in:
Mike Schwörer 2020-01-21 20:47:09 +01:00
parent 39abc59567
commit 8426f55e2d
Signed by: Mikescher
GPG Key ID: D3C7172E0A70F8CF

View File

@ -97,7 +97,7 @@ class RuleEngine
if (isset($ctrlOpt['method']) && $_SERVER["REQUEST_METHOD"] !== $ctrlOpt['method']) return null;
$route->needsAdminLogin = isset($ctrlOpt['password']);
$route->needsAdminLogin = in_array('password', $ctrlOpt);
if ($site->isProd() && isHTTPRequest() && !in_array('http', $ctrlOpt))
{