Opensearch Dashboards : Hide "Edit" button within the dashboards

Hi there!

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
I’m using the 2.13.0 version of Opensearch

Describe the issue:
I would like to hide the “Edit” button within the dashboards to read only users. I found an old issue (Disable the "Edit" button on OpenSearch Dashboard UI · Issue #3960 · opensearch-project/security · GitHub) but I think it’s not resolved.

When a read-only user click on Edit, he can change the dashboard and when he finally click on “Save”, he has a permission issue (which makes perfectly sense)

Instead of this behaviour, would it be possible to hide the Edit button?

Best regards,