Looks like `has_edit` is an unused variable here.