From 16f519a67764a98c381169159c42e664b52b2a03 Mon Sep 17 00:00:00 2001 From: Art Cancro Date: Mon, 22 Aug 2011 13:07:12 -0400 Subject: [PATCH] Blog owners automatically become room aides of their blogs. (In the future we will offer a site-wide configuration setting to suppress this behavior.) --- citadel/room_ops.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) 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); } -- 2.30.2