Group's reporters are not eligible to approve an MR

Summary

Only members of a group with role developer are eligible to approve an MR. In v12.5.0 a reporter would suffice.

Steps to reproduce

  1. Create project and add group as eligible approver for an MR image
  2. Create MR: nelbacha/approvals-test!1
  3. Notice that members of group with role Developer can approve, but reporters can not.

Example Project

https://gitlab.com/nelbacha/approvals-test/

What is the current bug behavior?

Reporter can not approve an MR

What is the expected correct behavior?

Reporter can approve an MR

Relevant logs and/or screenshots

Developer: image

Reporter: image

Output of checks

This bug happens on GitLab.com

ZD#140467 (GitLab Internal)

Assignee Loading
Time tracking Loading