Skip to content

Add user cap to group's membership settings

Ammar Alakkad requested to merge 334296-add-user-cap-setting into master

What does this MR do and why?

It adds a user caps input to the group's settings under "Permissions, LFS, 2FA" -> "Membership".

Adding a user cap will give group owners control over accidental user overages.

Backend changes were picked from !72117 (closed), thanks @vij 🎉

Screenshots or screen recordings

before after
Screen_Shot_2021-10-12_at_3.38.08_PM Screen_Shot_2021-10-12_at_3.37.45_PM

How to set up and validate locally

  1. rails console
  2. my_group = Group.find(<group_id>)
  3. Feature.enable(:saas_user_caps, my_group)
  4. Visit the group's setting page on the browser
  5. Check the new setting under "Permissions, LFS, 2FA" > "Membership"

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

Edited by Ammar Alakkad

Merge request reports