* serv_expire.c: don't allow Aides to be purged.
authorArt Cancro <ajc@citadel.org>
Mon, 25 Dec 2006 05:39:09 +0000 (05:39 +0000)
committerArt Cancro <ajc@citadel.org>
Mon, 25 Dec 2006 05:39:09 +0000 (05:39 +0000)
citadel/serv_expire.c

index e357ea615dfe7157078f4470b2c4a0280ccaeb12..56fb499fca52a04ed2a3fb31ab9390dad3cb3db6 100644 (file)
@@ -424,6 +424,10 @@ void do_user_purge(struct ctdluser *us, void *data) {
         */
        if (us->flags & US_PERM) purge = 0;
 
+       /* If the user is an Aide, don't purge him/her/it.
+        */
+       if (us->axlevel == 6) purge = 0;
+
        /* If the access level is 0, the record should already have been
         * deleted, but maybe the user was logged in at the time or something.
         * Delete the record now.