1 (edited by Smartys 2005-05-04 23:12)

Topic: Check that at least one admin exists

This has been suggested before, but I can't find the threads sad
Anyway, the idea is to stop problems like this or this. My suggestion involves 2 changes:
1. No deleting admins. Just like with bans, you need to take the person down to a moderator to be able to ban them.
2. Have a check when changing status. Count the number of administrators, and if it's 1, throw an error.

Re: Check that at least one admin exists

Consider it done.

Edit: One problem. This will require additions to the language packs sad

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Check that at least one admin exists

Mmm, indeed it will sad

4 (edited by Frank H 2005-05-04 23:54)

Re: Check that at least one admin exists

throw a 'normal' error() with not lang specific stuff

QnD fix ... but I suppose it'll work wink

Re: Check that at least one admin exists

Yeah, I guess I'll do that.

"Programming is like sex: one mistake and you have to support it for the rest of your life."

Re: Check that at least one admin exists

http://dev.punbb.org/changeset/199

Instead of counting administrators, I just removed the user group drop-down for administartors viewing their own profile.

"Programming is like sex: one mistake and you have to support it for the rest of your life."