Add missing canViewPreview check in AttachmentBBCode

If an image is posted and the active user may download it but may not view previews, a broken image was shown as preview because AttachmentPage correctly checks this permission.
Merge branch '2.0' of github.com:WoltLab/WCF into 2.0