How to find out if current user can edit a dashboard?

Hello,

Is there a REST API to call from a gadget on a dashboard to find out if current user can edit that dashboard?

I can obtain editPermissions by GET /rest/api/2/dashboard/:dashboardId but I would probably need to do follow-up REST calls to get details of permissions of type group and project (plus project with role) and inspect them whether current users belongs there.

Thanks in advance.

Having the same problem. I guess I just need to hit the endpoint and return false in catch(). They really need an EDIT_DASHBOARDS flag in /rest/api/3/permissions