diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-14 15:01:04 +0200 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-09-14 15:01:04 +0200 |
| commit | 3e97de838c6a2a37e1daa5ab8c3cd1fa350b1a7e (patch) | |
| tree | ae5cfcd8cd0f045ef45f86312e9eb0a46200b106 /app/views/groups/show.html.haml | |
| parent | db197aa61a3451bbe8eff1dea5dc992997b11b61 (diff) | |
| download | gitlab-ce-3e97de838c6a2a37e1daa5ab8c3cd1fa350b1a7e.tar.gz | |
Hide search panel for group page if you dont have accesspublic_profiles
Diffstat (limited to 'app/views/groups/show.html.haml')
| -rw-r--r-- | app/views/groups/show.html.haml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/views/groups/show.html.haml b/app/views/groups/show.html.haml index 2e81dffcee5..a9ba9d2ba10 100644 --- a/app/views/groups/show.html.haml +++ b/app/views/groups/show.html.haml @@ -1,3 +1,6 @@ +- unless can?(current_user, :read_group, @group) + - @disable_search_panel = true + = content_for :meta_tags do - if current_user = auto_discovery_link_tag(:atom, group_url(@group, format: :atom, private_token: current_user.private_token), title: "#{@group.name} activity") |
