Forbid the removal of the last user
authorJan Blunck <jblunck@suse.de>
Tue, 20 Jan 2009 15:39:16 +0000 (15:39 +0000)
committerJan Blunck <jblunck@suse.de>
Tue, 20 Jan 2009 15:39:16 +0000 (15:39 +0000)
commit990d54fe1a024ac28068e12028f8e2b87179076c
treecdd38eaf476964dc5c71237feec6f9db95e1b01c
parent810c84283c765205af3f6600e02d5a3c6ef5df25
Forbid the removal of the last user

If the last user is removed raise an exception.

Signed-off-by: Jan Blunck <jblunck@suse.de>
git-svn-id: http://svn.suse.de/svn/apport-opensuse-crashdb/trunk@19 e17c61c6-bb11-11dd-b423-6fa431a5bf9f
app/controllers/users_controller.rb
app/models/user.rb