Affects Version/s: 6.2.X EE, 7.0.0 M3
Steps to reproduce:
1. Login as "test" user.
2. Create a new site named "test Site" with new page.
3. Create a new User named "tester" and assign it to "test Site".
4. Add Wiki portlet to the test Page.
5. Upload an attachment-1 to Wiki by default.
6. Admin > content > wiki > click main wiki's action button.
7. Check Add Attachment permission.
8. Login as "tester" user.
9. Add Attachment-2.
10. Try to download attachment-1 and attachment-2.
The "tester" user be able to download attachments.
The "tester" user couldn't be able to download attachments and home page redirects a page with permission error message.
A guest with view permission also cannot download the attachment.