Added user group permission check to product viewed report reset

Added user group permission check to product viewed report reset

---
A javascript confirmation of the action to empty the error log
https://opencart.atlassian.net/browse/OC-1660