How about

```ruby
    admin? ||
      organisation == organisation_to_edit ||
      organisation_to_edit.parent && organisation == organisation_to_edit.parent
```