gitlab-org--gitlab-foss/app/views/layouts/nav
Dmitriy Zaporozhets d4cd6dcaa0 Merge branch 'settings-dropdown-permissions' into 'master'
Fix displaying of project settings links the user cannot access.

## What does this MR do?

It fixes the Project Settings dropdown displaying project settings links that the user cannot actually access.

## Are there points in the code the reviewer needs to double check?

I've tested combinations I can think of, feel free to mess around with and see if it breaks?

## Why was this MR needed?

Users were seeing links in the Project Settings dropdown that they shouldn't have seen, if they clicked them they would be shown permission errors.

## What are the relevant issue numbers?

#18294 

## Screenshots (if relevant)

Users without any permissions:

![Screen_Shot_2016-06-10_at_10.41.27_AM](/uploads/b70ca18a36b5f774b85694d8f1728882/Screen_Shot_2016-06-10_at_10.41.27_AM.png)

Guest members of the project:

![Screen_Shot_2016-06-10_at_10.48.36_AM](/uploads/a37986b4daa789063661c2fa8cf59d43/Screen_Shot_2016-06-10_at_10.48.36_AM.png)

Full permissions:

![Screen_Shot_2016-06-10_at_10.41.57_AM](/uploads/4c5cc97962e69a1a72ee8e237591ec22/Screen_Shot_2016-06-10_at_10.41.57_AM.png)

cc: @dzaporozhets @annabeldunstone @jschatz1 

See merge request !4599
2016-06-14 14:11:13 +00:00
..
_admin.html.haml Add back sidebar counters and username 2016-06-10 12:39:58 -05:00
_dashboard.html.haml Add back sidebar counters and username 2016-06-10 12:39:58 -05:00
_explore.html.haml Revert side nav to full width; remove border under nav; remove tooltips on nav links; stop page content shifting with side nav; put project nav in container 2016-06-10 12:01:51 -05:00
_group.html.haml Center layout navigation and remove icons 2016-06-11 11:30:53 +03:00
_group_settings.html.haml Fix mobile dropdown bug 2016-05-13 11:12:49 -05:00
_profile.html.haml Center layout navigation and remove icons 2016-06-11 11:30:53 +03:00
_project.html.haml Merge branch 'settings-dropdown-permissions' into 'master' 2016-06-14 14:11:13 +00:00
_project_settings.html.haml Pass can_edit and access to partial. 2016-06-13 08:01:46 -06:00