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.