Skip to content

Hide edit severity btn for users without permissions

Olena Horal-Koretska requested to merge 333852-hide-incidents-edit-btn into master

What does this MR do?

Adds the check for incident severity widget (same as for other sidebar widgets) whether the user can edit it

To test you should be a guest user, got to Monitor=>Incidents=>Create incident (or edit if there is one)=> note that sidebar severity is not editable (same as other widgets)

Then sign in as project dev, again try to edit the incident, and make sure that severity is editable

Screenshots or Screencasts (strongly suggested)

After Before
Screenshot_2021-07-22_at_15.24.49 Screenshot_2021-07-22_at_15.12.04

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • 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 #333852 (closed)

Edited by Olena Horal-Koretska

Merge request reports