I have several types of user accessing my app: Teacher, Student, Parent, etc. I want to observe all types but only show the messenger inbox to Teacher types.
Is there a way to achieve this without having to code a custom intercom_script_tag?
I hoped there might be a config option for it, something like:
config.show_inbox = Proc.new { |user| user.type == 'Teacher' ? true : false }
I tried passing a similar Proc into config.inbox.style to switch to custom style (ie hide the icon) but it didn't work.