Just:

```ruby
if user.allowed_channels.split(',').include?(channel_id)
```