isAllowedToDeletePost fix