Important roles can now not resign if they are the last in their group.
commit85823f534fca1cdc090ccc4fc4dd3fdd592e25f1
authorLennard de Rijk <ljvderijk@gmail.com>
Sat, 7 Mar 2009 22:14:04 +0000 (7 22:14 +0000)
committerLennard de Rijk <ljvderijk@gmail.com>
Sat, 7 Mar 2009 22:14:04 +0000 (7 22:14 +0000)
tree7b0eef32fa7f76a4752fd13f48533c1e2f547da9
parent3ca0476d6ffa7594ee3d7bc87c091403b0fb1467
Important roles can now not resign if they are the last in their group.

Fixes Issue 288.

I've decided to do it outside of the logic because if the need arises to kick the last org admin out of a group we need the ability to do so.

Patch by: Lennard de Rijk
Reviewed by: to-be-reviewed
app/soc/templates/soc/club_admin/manage.html
app/soc/templates/soc/club_member/manage.html
app/soc/templates/soc/mentor/manage.html
app/soc/templates/soc/org_admin/manage.html
app/soc/templates/soc/student/manage.html
app/soc/views/models/club_admin.py
app/soc/views/models/host.py
app/soc/views/models/org_admin.py
app/soc/views/models/role.py