Skip to content

Only display mirrored URL to users who can manage Repository settings

What does this MR do?

We are displaying mirrored URL to everyone currently which seems an unnecessary privilege to the users without the ability to change Repository settings.

Screenshots

For maintainers:

Screen_Shot_2020-03-12_at_9.58.18_pm

For guests:

Screen_Shot_2020-03-13_at_12.21.07_pm

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

If this MR contains changes to processing or storing of credentials or tokens, authorization and authentication methods and other items described in the security review guidelines:

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team

Related to #34079 (closed)

Edited by 🤖 GitLab Bot 🤖

Merge request reports