Be able to delete a team, if the current user is the only one left in the
authorJohan Sørensen <johan@johansorensen.com>
Wed, 1 Apr 2009 13:23:30 +0000 (15:23 +0200)
committerJohan Sørensen <johan@johansorensen.com>
Wed, 22 Apr 2009 13:18:17 +0000 (15:18 +0200)
commit3e3cdb9e02bb2333f0f072688bd6db52520b2f34
tree68fa67704a5d42a842b3530c5aa2195cb8e3a1a6
parent76bce8676eec96fc1f5a844650cf996f73cd46fb
Be able to delete a team, if the current user is the only one left in the
team or if user is a site_admin
app/controllers/groups_controller.rb
app/models/group.rb
app/views/groups/edit.html.erb
test/functional/groups_controller_test.rb
test/unit/group_test.rb