1. 09 8月, 2019 1 次提交
  2. 05 8月, 2019 1 次提交
  3. 27 5月, 2019 1 次提交
    • J
      Removes duplicated members from api/projects/:id/members/all · a9827e0e
      Jacopo 提交于
      When using the members/all api the same user was returned multiple times
      when he was a member of the project/group and also of one of the
      ancestor groups.
      Now the member is returned only once giving priority to the membership
      on the project and maintaining the same behaviour of the members UI.
      a9827e0e
  4. 01 5月, 2019 1 次提交
    • S
      Allow a member to have an access level equal to parent group · 32ddc3fe
      Stan Hu 提交于
      Suppose you have this configuration:
      
      1. Subgroup `hello/world`
      2. Subgroup `hello/mergers`.
      3. Project `hello/world/my-project` has invited group `hello/world` to
      access protected branches.
      4. The rule allows the group to merge but no one can push.
      5. User `newuser` has Owner access to the parent group `hello`.
      
      Previously, there was no way for the user `newuser` to be added to the
      `hello/mergers` group since the validation only allowed a user to be
      added at a higher access level.
      
      Since membership in a subgroup confers certain access rights, such as
      being able to merge or push code to protected branches, we have to
      loosen the validation and allow someone to be added at an equal level
      granted by the parent group.
      
      Closes https://gitlab.com/gitlab-org/gitlab-ee/issues/11323
      32ddc3fe
  5. 29 3月, 2019 1 次提交
  6. 06 3月, 2019 1 次提交
    • H
      Align EmailValidator to validate_email gem implementation. · c8c0ea6c
      Horatiu Eugen Vlad 提交于
      Renamed EmailValidator to DeviseEmailValidator to avoid 'email:' naming collision with ActiveModel::Validations::EmailValidator in 'validates' statement.
      Make use of the options attribute of the parent class ActiveModel::EachValidator.
      Add more options: regex.
      c8c0ea6c
  7. 31 1月, 2019 2 次提交
    • J
      Add subresources removal to member destroy service · c653921b
      James Lopez 提交于
      c653921b
    • J
      Sent notification only to authorized users · 4d7fa59a
      Jan Provaznik 提交于
      When moving a project, it's possible that some users who had
      access to the project in old path can not access the project
      in the new path.
      
      Because `project_authorizations` records are updated asynchronously,
      when we send the notification about moved project the list of project
      team members contains old project members, we want to notify all these
      members except the old users who can not access the new location.
      4d7fa59a
  8. 25 1月, 2019 1 次提交
  9. 24 1月, 2019 1 次提交
  10. 23 1月, 2019 1 次提交
    • J
      Sent notification only to authorized users · 022f60e8
      Jan Provaznik 提交于
      When moving a project, it's possible that some users who had
      access to the project in old path can not access the project
      in the new path.
      
      Because `project_authorizations` records are updated asynchronously,
      when we send the notification about moved project the list of project
      team members contains old project members, we want to notify all these
      members except the old users who can not access the new location.
      022f60e8
  11. 06 12月, 2018 1 次提交
  12. 15 11月, 2018 1 次提交
    • Y
      Refactor Member#add_user for GitLab EE · 0aa386f7
      Yorick Peterse 提交于
      GitLab EE extends Member#add_user by adding some LDAP specific flags.
      Prior to these changes, the only way this could be done was by modifying
      Member#add_user in place. This could lead to merge conflicts whenever a
      developer wants to change this method.
      
      To resolve this issue, the logic that EE extends has been moved into a
      separate method with the appropriate arguments. This allows EE to extend
      the logic by prepending the method using an EE specific module.
      0aa386f7
  13. 11 9月, 2018 1 次提交
  14. 21 8月, 2018 1 次提交
  15. 27 7月, 2018 1 次提交
  16. 11 7月, 2018 1 次提交
  17. 10 5月, 2018 1 次提交
  18. 04 4月, 2018 1 次提交
  19. 22 3月, 2018 1 次提交
  20. 12 3月, 2018 1 次提交
  21. 08 3月, 2018 1 次提交
  22. 27 2月, 2018 2 次提交
  23. 14 2月, 2018 1 次提交
  24. 12 12月, 2017 1 次提交
    • T
      Refactor member view by using presenter · 2cf3fc18
      TM Lee 提交于
      - Create MemberPresenter alongside with GroupMemberPresenter and ProjectMemberPresenter
      - Make Member model Presentable
      - Move action_member_permission from MembersHelper into the MemberPresenter
      - Added rspec using double, separate specs for GroupMemberPresenter and ProjectMemberPresenter
      
      Fixes #28004.
      Signed-off-by: NRémy Coutable <remy@rymai.me>
      2cf3fc18
  25. 05 12月, 2017 1 次提交
  26. 06 9月, 2017 1 次提交
    • R
      Optimize SQL queries used in Groups::GroupMembersController#create · 66cfb901
      Rubén Dávila 提交于
      The following optimizations were performed:
      
      - Add new association to GroupMember and ProjectMember
      
        This new association will allow us to check if a user is a member of a
        Project or Group through a single query instead of two.
      
      - Optimize retrieving of Members when adding multiple Users
      66cfb901
  27. 14 8月, 2017 1 次提交
  28. 12 8月, 2017 3 次提交
  29. 21 6月, 2017 1 次提交
  30. 07 6月, 2017 1 次提交
  31. 05 6月, 2017 1 次提交
    • S
      Allow group reporters to manage group labels · 5db229fb
      Sean McGivern 提交于
      Previously, only group masters could do this. However, project reporters can
      manage project labels, so there doesn't seem to be any need to restrict group
      labels further.
      
      Also, save a query or two by getting a single GroupMember object to find out if
      the user is a master or not.
      5db229fb
  32. 28 4月, 2017 1 次提交
  33. 21 4月, 2017 1 次提交
  34. 23 2月, 2017 3 次提交
    • D
      Revert "Enable Style/DotPosition" · 56de781a
      Douwe Maan 提交于
      This reverts commit e00fb2bdc2090e9cabeb1eb35a2672a882cc96e9.
      
      # Conflicts:
      #	.rubocop.yml
      #	.rubocop_todo.yml
      #	lib/gitlab/ci/config/entry/global.rb
      #	lib/gitlab/ci/config/entry/jobs.rb
      #	spec/lib/gitlab/ci/config/entry/factory_spec.rb
      #	spec/lib/gitlab/ci/config/entry/global_spec.rb
      #	spec/lib/gitlab/ci/config/entry/job_spec.rb
      #	spec/lib/gitlab/ci/status/build/factory_spec.rb
      #	spec/lib/gitlab/incoming_email_spec.rb
      56de781a
    • D
      Revert "Prefer leading style for Style/DotPosition" · 1fe7501b
      Douwe Maan 提交于
      This reverts commit cb10b725c8929b8b4460f89c9d96c773af39ba6b.
      1fe7501b
    • D
      Move up delegate calls · b3ff48c9
      Douwe Maan 提交于
      b3ff48c9