Rebase button displays on out-of-date MRs

Summary

When a branch is behind it's target for an MR, the rebase button always displays regardless of approval

Steps to reproduce

  1. Open MR in a project with approvals enabled
  2. Get the branch behind the target

What is the current bug behavior?

It displays the rebase button

What is the expected correct behavior?

A grayed out rebase button until the MR is approved

Results of GitLab environment info

I have no access to this stuff

2017-06-22_16_32_28

Assignee Loading
Time tracking Loading