Use Repository#admin? instead if repo.owner.admin? to query for adminship
authorJohan Sørensen <johan@johansorensen.com>
Tue, 24 Nov 2009 11:27:36 +0000 (12:27 +0100)
committerJohan Sørensen <johan@johansorensen.com>
Tue, 24 Nov 2009 11:27:36 +0000 (12:27 +0100)
commitb0c19333020d249b49b32b08f5cf96089bf157ef
treebaabc1890eab7d1140fbe40cc1bd0537769462f7
parentbc1c547ef8a28d9b696ccfa542d8f28defde1fc9
Use Repository#admin? instead if repo.owner.admin? to query for adminship

That way we use the collaborator permissions instead of just the
owner, which is inline with how the new permission scheme works
app/controllers/committerships_controller.rb
app/controllers/repositories_controller.rb
app/helpers/repositories_helper.rb
app/views/repositories/show.html.erb
test/functional/committerships_controller_test.rb
test/functional/repositories_controller_test.rb
test/unit/repository_test.rb