Skip to content

Refactor User's highest_role method

Corinna Gogolok requested to merge replace_max_access_level_membership into master

What does this MR do?

Closes #213093 (closed)

The new user_highest_role table stores the highest access level for each active user. Therefore the user's association max_access_level_membership is not needed anymore and can be removed and related logic can be replaced with the user_highest_role association.

Screenshots

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
Edited by Corinna Gogolok

Merge request reports