Add DiscussionModel::canEdit() to check for discussion editing permission.