1. 23 Feb, 2017 1 commit
  2. 24 Oct, 2016 1 commit
  3. 28 Sep, 2016 1 commit
    • Rémy Coutable's avatar
      Allow Member.add_user to handle access requesters · 44fe4f60aea6
      Rémy Coutable authored
      
      
      Changes include:
      
      - Ensure Member.add_user is not called directly when not necessary
      - New GroupMember.add_users_to_group to have the same abstraction level as for Project
      - Refactor Member.add_user to take a source instead of an array of members
      - Fix Rubocop offenses
      - Always use Project#add_user instead of project.team.add_user
      - Factorize users addition as members in Member.add_users_to_source
      - Make access_level a keyword argument in GroupMember.add_users_to_group and ProjectMember.add_users_to_projects
      - Destroy any requester before adding them as a member
      - Improve the way we handle access requesters in Member.add_user
        Instead of removing the requester and creating a new member,
        we now simply accepts their access request. This way, they will
        receive a "access request granted" email.
      - Fix error that was previously silently ignored
      - Stop raising when access level is invalid in Member, let Rails validation do their work
      Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
      44fe4f60aea6
  4. 18 Jun, 2016 1 commit
  5. 16 Jun, 2016 2 commits
  6. 14 Jun, 2016 2 commits
  7. 03 Jun, 2016 2 commits
  8. 09 May, 2016 1 commit
  9. 06 May, 2016 1 commit
  10. 30 Mar, 2016 1 commit
  11. 03 May, 2015 1 commit
  12. 14 Apr, 2015 3 commits
  13. 27 Jan, 2015 1 commit
  14. 09 Oct, 2014 1 commit
  15. 14 Sep, 2014 3 commits