this could just be simplified to 

```ruby
def check_if_allowed
  current_user.allowed_channels.split(',').include?(params[:channel_id].to_s)
end
```
Right?