# app/policies/project_policy.rb
class ProjectPolicy < ApplicationPolicy
  def collaboration_destroy_entry?
    # Users can only destroy their own message entries
    # Admins can destroy any entry
    return true if current_user.admin?

    # Only allow destroying message entries, not action entries
    record.is_a?(Avo::Collaborate::Comment) && record.author == current_user
  end
end
```
</Option>

---