alllow registere users
This commit is contained in:
@@ -49,6 +49,11 @@ class BotLimiter extends Module
|
|||||||
if (!empty((new Cookie('psAdmin'))->id_employee)) {
|
if (!empty((new Cookie('psAdmin'))->id_employee)) {
|
||||||
return; // Don't display the tag for logged-in administrators
|
return; // Don't display the tag for logged-in administrators
|
||||||
}
|
}
|
||||||
|
// skip logged in user
|
||||||
|
if (isset($this->context->customer->id) && $this->context->customer->id > 0) {
|
||||||
|
return; // Don't display the tag for logged-in customers
|
||||||
|
}
|
||||||
|
|
||||||
// 1. Skip if we are currently ON the verification page to avoid loops
|
// 1. Skip if we are currently ON the verification page to avoid loops
|
||||||
if ($this->context->controller instanceof BotLimiterVerifyModuleFrontController) {
|
if ($this->context->controller instanceof BotLimiterVerifyModuleFrontController) {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user