From ebcd503e9372df6b5d3dfecbb548b0bd1e3d1ecb Mon Sep 17 00:00:00 2001 From: Robert Speicher Date: Wed, 23 Sep 2015 16:01:35 -0400 Subject: [PATCH] Only surface version information on help index to admins Closes #2721 --- app/views/help/index.html.haml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/app/views/help/index.html.haml b/app/views/help/index.html.haml index ab7ed1b5d9..5e0cf06e15 100644 --- a/app/views/help/index.html.haml +++ b/app/views/help/index.html.haml @@ -1,10 +1,11 @@ %div %h1 GitLab - %span= Gitlab::VERSION - %small= Gitlab::REVISION - - if current_application_settings.version_check_enabled - = version_status_badge + - if current_user && current_user.admin? + %span= Gitlab::VERSION + %small= Gitlab::REVISION + - if current_application_settings.version_check_enabled + = version_status_badge %p.slead GitLab is open source software to collaborate on code. %br