Describe the bug
Disabled products are visible with wrong token or no token at all
To Reproduce
Steps to reproduce the behavior:
?preview=1. Refresh.Screenshots
If applicable, add screenshots or screenrecords to help explain your problem.
With correct token:

Token removed:

Additional information
PrestaShop version: 1.7.5.2, 1.7.6, 1.7.7
PHP version: N/A
Hi @rdy4ever,
Thanks for your report.
I manage to reproduce the issue with PS1.7.5.2 & PS1.7.6.2 & PS1.7.6.3 & the branch 1.7.7.x.
I鈥檒l add this to the debug roadmap so that it鈥檚 fixed. If you have already fixed it on your end or if you think you can do it, please do send us a pull request!
Thanks!
@PrestaShop/prestashop-product-team Hi, Is it the good behavior that a disabled product is accessible on the frontoffice from an anonymous user (but with a parameter in URL ?preview=1) ?
@PrestaShop/prestashop-product-team Hi, Is it the good behavior that a disabled product is accessible on the frontoffice from an anonymous user (but with a parameter in URL
?preview=1) ?
Hi @Progi1984
This is clearly a bug :)
I confirm a disabled product should never be accessible on front office, whatever type of "user" you are, except for preview which I guess is only usable with a specific token. Wdyt @Progi1984 ?
@colinegin Thanks for the answer.