fix 'password' route option not working
This commit is contained in:
parent
39abc59567
commit
8426f55e2d
@ -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))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user