diff options
author | Nur Rony <pro.nmrony@gmail.com> | 2016-12-05 13:51:57 +0600 |
---|---|---|
committer | Nur Rony <pro.nmrony@gmail.com> | 2016-12-12 12:50:20 +0600 |
commit | 0bde5c946ab31f822e1146b0e242fdbd1553733e (patch) | |
tree | d214cc90f73f056712118af1826505f7144f7030 /app/views/groups | |
parent | fd20d0b19e17603c886189148e9f59caab50ae19 (diff) | |
download | gitlab-ce-0bde5c946ab31f822e1146b0e242fdbd1553733e.tar.gz |
hides new MR button from not loggedin user
Diffstat (limited to 'app/views/groups')
-rw-r--r-- | app/views/groups/merge_requests.html.haml | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/views/groups/merge_requests.html.haml b/app/views/groups/merge_requests.html.haml index e6953d94531..dbbdb583a24 100644 --- a/app/views/groups/merge_requests.html.haml +++ b/app/views/groups/merge_requests.html.haml @@ -2,8 +2,9 @@ .top-area = render 'shared/issuable/nav', type: :merge_requests - .nav-controls - = render 'shared/new_project_item_select', path: 'merge_requests/new', label: "New Merge Request" + - if current_user + .nav-controls + = render 'shared/new_project_item_select', path: 'merge_requests/new', label: "New Merge Request" = render 'shared/issuable/filter', type: :merge_requests |