I'm really sad :(...

```ruby
if !event.private || (event.private && event.users.include?(user))

# or even more simple

if !event.private || user.events.include?(event)
```