From 11c73b3a757f20903fb2ebf41b39e58a2576e199 Mon Sep 17 00:00:00 2001 From: Marcel van Remmerden <mvanremmerden@gitlab.com> Date: Thu, 29 Jul 2021 12:30:28 +0000 Subject: [PATCH] Hide pull mirror update time from guest visitors Changelog: changed --- ee/app/views/projects/_home_mirror.html.haml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/ee/app/views/projects/_home_mirror.html.haml b/ee/app/views/projects/_home_mirror.html.haml index 0f764f9fe03c..3c25353b4824 100644 --- a/ee/app/views/projects/_home_mirror.html.haml +++ b/ee/app/views/projects/_home_mirror.html.haml @@ -1,7 +1,6 @@ -- if @project.mirror? +- if @project.mirror? && can?(current_user, :admin_project, @project) %p - - if can?(current_user, :admin_project, @project) - - import_url = @project.safe_import_url - Mirrored from #{link_to import_url, import_url}. - %br + - import_url = @project.safe_import_url + Mirrored from #{link_to import_url, import_url}. + %br = render "shared/mirror_status" -- GitLab