diff options
author | Luke Bennett <lukeeeebennettplus@gmail.com> | 2018-07-23 14:30:11 +0100 |
---|---|---|
committer | Bob Van Landuyt <bob@vanlanduyt.co> | 2018-07-26 19:00:56 +0200 |
commit | 01fd71adbd2736dcf28e56eb54301b4a01c0f81b (patch) | |
tree | 70cf1bf8d4c78d4c080bfd7e8fa405df4968e376 /app/views/layouts | |
parent | 626d5caf0fb4fe242c24dda294457479eebe6c16 (diff) | |
download | gitlab-ce-01fd71adbd2736dcf28e56eb54301b4a01c0f81b.tar.gz |
Add read_instance_statistics global policy
Diffstat (limited to 'app/views/layouts')
-rw-r--r-- | app/views/layouts/nav/_dashboard.html.haml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/views/layouts/nav/_dashboard.html.haml b/app/views/layouts/nav/_dashboard.html.haml index 356e52918d9..fb7ba1527e3 100644 --- a/app/views/layouts/nav/_dashboard.html.haml +++ b/app/views/layouts/nav/_dashboard.html.haml @@ -70,7 +70,7 @@ = nav_link(controller: 'admin/dashboard') do = link_to admin_root_path, class: 'admin-icon qa-admin-area-link', title: _('Admin area'), aria: { label: _("Admin area") }, data: {toggle: 'tooltip', placement: 'bottom', container: 'body'} do = sprite_icon('admin', size: 18) - - unless hide_instance_statistics? + - if can?(current_user, :read_instance_statistics) = nav_link(controller: :instance_statistics) do = link_to instance_statistics_root_path, title: 'Instance statistics', aria: { label: 'Instance statistics' }, data: {toggle: 'tooltip', placement: 'bottom', container: 'body'} do = sprite_icon('chart', size: 18) |