Skip to content

Allow read-only access to escalation policies for auditors

What does this MR do and why?

See https://docs.gitlab.com/ee/administration/auditor_users.html

Users with auditor access have read-only access to all groups, projects, and other resources except:

Screenshots or screen recordings

  1. Login as an Auditor
  2. Visit http://localhost:3000/gitlab-org/gitlab-test/-/escalation_policies
Before After without policies After with policies
Screenshot_from_2022-09-17_11-48-10 Screenshot_from_2022-09-17_11-54-15 Screenshot_from_2022-09-17_11-44-14

Read-only

Although we are showing "Create", "Edit" and "Delete" buttons the actions are read-only and auditors see an error message.

Creating Editing Deleting
Screenshot_from_2022-09-17_11-54-30 Screenshot_from_2022-09-17_11-48-52 Screenshot_from_2022-09-17_11-48-41

In a follow-up #374149, we need to hide these buttons when when administration is not possible. This is also true for "On call schedules".

How to set up and validate locally

  1. Create an auditor
  2. Impersonate as an auditor
  3. Visit http://localhost:3000/gitlab-org/gitlab-test
  4. See Monitor > Escalation Policies item in the navigation bar
  5. Visit http://localhost:3000/gitlab-org/gitlab-test/-/escalation_policies
  6. See screenshots above

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #358633 (closed)

Edited by Peter Leitzen

Merge request reports