_Originally reported in the discuss forums_
Kibana version: master
When adding a saved search to a dashboard, a dashboard only user is unable to see the pagination labels & buttons:

Left side: dashboard only user
Right side: full user
__To Reproduce__:
kibana_dashboard_only_user, and the custom role you just created.cc @elastic/kibana-security @elastic/kibana-app
Who has idea how to fast fix this bug. When I do edit kibana code?
+1
I found how to solve the problem.
I go to edit src/core_plugins/kibana/public/dashboard/listing/dashboard_listing.js and add
import 'ui/pager_control';
import 'ui/pager';
After line 23.
That's great @simpleuser99 - thanks for investigating! I'd be happy to review that change for you if you're willing to put it in a PR... if not, I should be able to open one sometime soon.
Yes, thanks @simpleuser99! Just one note, for anyone putting up a PR, I think the import should go somewhere in the saved search embeddable file, not dashboard_listing.js. I think it should still fix the problem, and the import then is closer to where it's actually needed. I ran into what I think is the same issue when trying to embed saved searches inside canvas and I had to add the ui/pager import in the embeddable files to get it to work.
Most helpful comment
Yes, thanks @simpleuser99! Just one note, for anyone putting up a PR, I think the import should go somewhere in the saved search embeddable file, not
dashboard_listing.js. I think it should still fix the problem, and the import then is closer to where it's actually needed. I ran into what I think is the same issue when trying to embed saved searches inside canvas and I had to add the ui/pager import in the embeddable files to get it to work.