Skip to content

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 (closed)

Screenshots (if relevant)

Users without any permissions:

Screen_Shot_2016-06-10_at_10.41.27_AM

Guest members of the project:

Screen_Shot_2016-06-10_at_10.48.36_AM

Full permissions:

Screen_Shot_2016-06-10_at_10.41.57_AM

cc: @dzaporozhets @annabeldunstone @jschatz1

Merge request reports