Blog owners automatically become room aides of their blogs.
authorArt Cancro <ajc@uncensored.citadel.org>
Mon, 22 Aug 2011 17:07:12 +0000 (13:07 -0400)
committerArt Cancro <ajc@uncensored.citadel.org>
Mon, 22 Aug 2011 17:07:12 +0000 (13:07 -0400)
(In the future we will offer a site-wide configuration setting to suppress this behavior.)

citadel/room_ops.c

index fbea0f27083633cd8218e0bc82835ef3df8b5f94..c915517390cdf465736de669369eefbe96839e92 100644 (file)
@@ -1914,12 +1914,20 @@ unsigned CtdlCreateRoom(char *new_room_name,
        }
 
        /* If the room is private, and the system administrator has elected
-        * to automatically grant room aide privileges, do so now; otherwise,
-        * set the room aide to undefined.
+        * to automatically grant room aide privileges, do so now.
         */
        if ((qrbuf.QRflags & QR_PRIVATE) && (CREATAIDE == 1)) {
                qrbuf.QRroomaide = CC->user.usernum;
-       } else {
+       }
+       /* Blog owners automatically become room aides of their blogs.
+        * (In the future we will offer a site-wide configuration setting to suppress this behavior.)
+        */
+       else if (new_room_view == VIEW_BLOG) {
+               qrbuf.QRroomaide = CC->user.usernum;
+       }
+       /* Otherwise, set the room aide to undefined.
+        */
+       else {
                qrbuf.QRroomaide = (-1L);
        }