summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2015-09-23 16:01:35 -0400
committerRobert Speicher <rspeicher@gmail.com>2015-09-23 16:01:35 -0400
commitebcd503e9372df6b5d3dfecbb548b0bd1e3d1ecb (patch)
tree25b02a6d699a696a3e2d43f1786cb6c9932308e7
parentfd6b5099fbb0198cbf02ffcb647cb93253a42c0f (diff)
downloadgitlab-ce-ebcd503e9372df6b5d3dfecbb548b0bd1e3d1ecb.tar.gz
Only surface version information on help index to admins
Closes #2721
-rw-r--r--app/views/help/index.html.haml9
1 files changed, 5 insertions, 4 deletions
diff --git a/app/views/help/index.html.haml b/app/views/help/index.html.haml
index ab7ed1b5d95..5e0cf06e15e 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