-
- Downloads
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
parent
e8de21fb
No related branches found
No related tags found
Showing
- app/controllers/admin/groups_controller.rb 2 additions, 9 deletionsapp/controllers/admin/groups_controller.rb
- app/controllers/groups_controller.rb 1 addition, 1 deletionapp/controllers/groups_controller.rb
- app/controllers/profiles/groups_controller.rb 2 additions, 2 deletionsapp/controllers/profiles/groups_controller.rb
- app/models/ability.rb 2 additions, 2 deletionsapp/models/ability.rb
- app/models/group.rb 11 additions, 14 deletionsapp/models/group.rb
- app/models/namespace.rb 1 addition, 1 deletionapp/models/namespace.rb
- app/models/project.rb 3 additions, 7 deletionsapp/models/project.rb
- app/models/user.rb 1 addition, 1 deletionapp/models/user.rb
- app/services/system_hooks_service.rb 4 additions, 2 deletionsapp/services/system_hooks_service.rb
- app/views/admin/groups/index.html.haml 2 additions, 5 deletionsapp/views/admin/groups/index.html.haml
- app/views/admin/groups/show.html.haml 2 additions, 21 deletionsapp/views/admin/groups/show.html.haml
- app/views/admin/projects/show.html.haml 1 addition, 1 deletionapp/views/admin/projects/show.html.haml
Please register or sign in to comment