cmd_msg*() now work properly in guest mode. This completes the minimum required...
authorArt Cancro <ajc@citadel.org>
Fri, 3 Sep 2010 17:06:18 +0000 (13:06 -0400)
committerArt Cancro <ajc@citadel.org>
Fri, 3 Sep 2010 17:06:18 +0000 (13:06 -0400)
citadel/msgbase.c

index a62daa15ceaff2ceb338888740e29af3bd4a0dc6..cd4fd5e41dd240b25a8f8bc2019f7b68e9b8d654 100644 (file)
@@ -1457,16 +1457,18 @@ void extract_encapsulated_message(char *name, char *filename, char *partnum, cha
                memcpy(encap->msg, content, length);
                return;
        }
-
 }
 
 
-
-
-
-
+/* 
+ * Determine whether the currently logged in session has permission to read
+ * messages in the current room.
+ */
 int CtdlDoIHavePermissionToReadMessagesInThisRoom(void) {
-       if ((!(CC->logged_in)) && (!(CC->internal_pgm))) {
+       if (    (!(CC->logged_in))
+               && (!(CC->internal_pgm))
+               && (!config.c_guest_logins)
+       ) {
                return(om_not_logged_in);
        }
        return(om_ok);