Commit 592dce18b549cd29933603f53f1ab8fb9f33840e

Authored by Jeroen van Baarsen
1 parent 0f055197

Always show merge status

Always show the merge status of a merge request, even if the user has no
permission to do the actual merging.

Fixes
http://feedback.gitlab.com/forums/176466-general/suggestions/5673321-everyone-should-be-able-to-see-a-mr-status
app/views/projects/merge_requests/show/_mr_accept.html.haml
... ... @@ -4,7 +4,10 @@
4 4 %strong Archived projects cannot be committed to!
5 5 - else
6 6 .bs-callout
7   - %strong You don't have permission to merge this MR
  7 + .automerge_widget.cannot_be_merged.hide
  8 + %strong This can't be merged automatically, even if it could be merged you don't have the permission to do so.
  9 + .automerge_widget.can_be_merged.hide
  10 + %strong This can be merged automatically but you don't have the permission to do so.
8 11  
9 12  
10 13 - if @show_merge_controls
... ...