Added Repository#{admin,reviewer,committer}? helpers and fixup can_be_deleted_by?
authorJohan Sørensen <johan@johansorensen.com>
Tue, 24 Nov 2009 09:23:01 +0000 (10:23 +0100)
committerJohan Sørensen <johan@johansorensen.com>
Tue, 24 Nov 2009 09:23:01 +0000 (10:23 +0100)
commitbc1c547ef8a28d9b696ccfa542d8f28defde1fc9
tree9a5e1e9af24535514f14267ac59fb23548bbad3d
parent09aecc13044b193bb4d13f8e779d8cd879067254
Added Repository#{admin,reviewer,committer}? helpers and fixup can_be_deleted_by?

The can_be_deleted_by? method now takes the proper adminship (through the committerships) into account
app/models/repository.rb
test/unit/repository_test.rb