Skip to content

Save SAML Group Links with the correct acces level

What does this MR do and why?

When a Member Role is provided, set the SAML Group Link's access level to the Member Role's base access level.

The reason behind this change is to enable us to create or update a SAML Group Link or SAML Provider by only providing a member_role_id.

This MR also:

  • moves the spec/support/shared_examples/models/with_member_role_shared_examples.rb file to EE
  • refactors the GroupSaml::SamlProvider::BaseService to use the set_access_level_based_on_member_role method

Issue: #417201 (closed)

MR acceptance checklist

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

Edited by Alex Buijs

Merge request reports