Support private repositories with LDAP authorization
authorMarius Mathiesen <marius@gitorious.org>
Thu, 12 Jul 2012 12:49:21 +0000 (14:49 +0200)
committerMarius Mathiesen <marius@gitorious.org>
Mon, 8 Oct 2012 07:41:32 +0000 (09:41 +0200)
commitc6b9c96fb240a46bd75cc7054b514f6ec534be51
tree7d1f3532c62628241473e38f924ffaa3b8462ac2
parentb3a8f37ee04a84847cc3a4adbd89e40ac707c51a
Support private repositories with LDAP authorization

This was easier than I feared. It was simply a matter of
- Use Team#find_by_name! to find an LdapGroup or Group to save
  as content membership
- Implement LdapGroup#member?
- Add a test which demonstrates this (Projects#show in private mode
  with a LdapGroup based content membership)
app/controllers/content_memberships_controller.rb
app/models/ldap_group.rb
test/functional/projects_controller_test.rb