"Developer" permission cannot view project statics via API

Summary

According to our documentation Project member permissions

Action Guest Reporter Developer
View project statistics

A user with Developer permission should be able to see the project statistics. Visiting /api/v4/projects/:id/statistics will return {message: "403 Forbidden"}, increasing the permission to maintainer will allow them permission.

What is the current bug behavior?

You will get {message: "403 Forbidden"} instead of the statistics.

What is the expected correct behavior?

Seen the statistics.

Possible fixes

Fixing the permission for the API call.

Premium customer ticket: https://gitlab.zendesk.com/agent/tickets/152188 (internal only)