Where is session[:userrole] getting set?


I’m working on Botvinnik (CloudForms 3.2/cfme 5.4) and have had a request to hide the ems_custom_attributes box on the VM explorer.

I’m trying to use session[:userrole] in app/views/vm_common/_main.html.haml similarly to how it is being used in app/views/support/show.html.haml. Unfortunately it’s not populating that variable on the vm_common/_main.html.haml page. I’ve tried tracing the controllers back and just can’t find where that’s being set. I can use session[:userid] as that’s populated, but I would rather handle the case based on role.

Could someone point out my clearly obvious oversight?



Looks like maybe this was cleared up by an appliance reboot…