Fix slow ACL query for dashboards that was used as subquery on multiple places slowing down search and login in instances with many dashboards. (cherry picked from commit 1c3ad78672)
1c3ad78672