OSDN Git Service

Group ownership completely based on users_groups relation now
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Thu, 26 Sep 2013 11:49:22 +0000 (14:49 +0300)
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Thu, 26 Sep 2013 11:49:22 +0000 (14:49 +0300)
commit65b9768ccfbdc3de682d66430601cf3af1b2a2f8
treeb414c17b43b098b92b27cb1bb2cf1ffe40644f0c
parentedd2143d35d439e203d53b5e413f71e9f02db139
Group ownership completely based on users_groups relation now

Before we have only owner_id to determine group owner
With multiple owners per group we should get rid of owner_id in group.
So from now @group.owner will always be nil but
@group.owners return an actual array of users who can admin this group
12 files changed:
app/controllers/admin/groups_controller.rb
app/controllers/groups_controller.rb
app/controllers/profiles/groups_controller.rb
app/models/ability.rb
app/models/group.rb
app/models/namespace.rb
app/models/project.rb
app/models/user.rb
app/services/system_hooks_service.rb
app/views/admin/groups/index.html.haml
app/views/admin/groups/show.html.haml
app/views/admin/projects/show.html.haml