ZEN-10632: Event rainbows do not honour user/device permissions

port of:
 https://jira.zenoss.com/browse/ZEN-10769
 https://dev.zenoss.com/tracint/changeset/82275