From: Art Cancro Date: Mon, 22 Aug 2011 17:07:12 +0000 (-0400) Subject: Blog owners automatically become room aides of their blogs. X-Git-Tag: v8.11~516 X-Git-Url: https://code.citadel.org/?a=commitdiff_plain;h=16f519a67764a98c381169159c42e664b52b2a03;p=citadel.git Blog owners automatically become room aides of their blogs. (In the future we will offer a site-wide configuration setting to suppress this behavior.) --- diff --git a/citadel/room_ops.c b/citadel/room_ops.c index fbea0f270..c91551739 100644 --- a/citadel/room_ops.c +++ b/citadel/room_ops.c @@ -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); }