-
Notifications
You must be signed in to change notification settings - Fork 9.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guest users can subscribe to a newsletter even if the module is disabled from the Magento admin panel #39757
Comments
Hi @pullemall. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
Hi @engcom-Bravo. Thank you for working on this issue.
|
Hi @pullemall, Thanks for your reporting and collaboration. we have tried to reproduce the issue in latest 2.4-develop instance and we are not able to reproduce the issue.kindly refer the screenshots. ![]() ![]() unable to subscribe to newsletters. kindly recheck the issue in latest 2.4-develop instance and elaborate the steps to reproduce if the issue is still reproducible. Thanks. |
Hi @@engcom-Bravo ![]() |
Hi @pullemall, Thanks for your quick update. We have tried to reproduce the issue in Latest 2.4-develop instance and we are not able to reproduce the issue.kindly refer the screenshots. ![]() ![]() guest user is unable to subscribe to newsletters.Could you please let us know if we are missing anything. Thanks. |
Hi @engcom-Bravo, Thanks for checking. May I ask you how you know that this didn't work? Have you checked the newsletter subscribers, as I described in the third step? ![]() |
Hi @pullemall, Thanks for your update. We have tried to reproduce the issue in Latest 2.4-develop instance and we are not able to reproduce the issue.kindly refer the screenshots. ![]() ![]() guest user is unable to subscribe to newsletters.Could you please let us know if we are missing anything. Thanks. |
Preconditions and environment
Steps to reproduce
newsletter/subscriber/new
with necessary data e.g.:email: test@test.test
Expected result
When the module is disabled a guest user is unable to subscribe to newsletters
Actual result
When the module is disabled a guest user can subscribe to newsletters
Additional information
The issue happens because the controller's method
\Magento\Newsletter\Controller\Subscriber\NewAction::execute
doesn't check if the module is enabled or disabled, but the default config allows guests to subscribe to newsletters:Request data:

Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: