insights: move permissionsValidator out of the global resolver and in…
Created by: coury-clark
Fixes #29055 (closed)
Resolver
is instantiated globally per frontend
, so the permissionsValidator
was accidentally reusing values from incorrect users.
Also added some tests for the HasDashboardPermission
function