Fix view_warning permission on posts
Fix view_warning permission on posts

This is a bug
$context['user']['can_mod'] is true when the user is able to access the moderation center, that doesn't mean the user can moderate the forum, this matches the logic in profile view.

Signed-off-by: SychO <sychocouldy@gmail.

StealthWombat/SMF2.1-more-forkery,StealthWombat/SMF2.1-more-forkery