Export dashboard JSON button in 11.5 - how to hide from a viewer?

Hi all,
I’ve just migrated from Grafana OSS 11.4 to 11.5.
I’ve noticed a new “Export” button:


Even a viewer can easily download the dashboard definition, which I’d like to avoid.

In 11.4 the export functionality is accessible through the “Share” button. It’s not as visible, but still allows the viewer to download the JSON model.

Is there a way to disable this functionality for a viewer role?

Thank you!

Ok, what will happen when you hide it somehow? Then even a viewer can still download a dashboard definition by using browser console.

Yes, but at least it will be not so obvious