Well, it doesn't crash anymore, but it also doesn't work at all. Is that an improvement?
[citadel.git] / citadel / room_ops.c
index 9adc4d69e93ed9d66fa217ad82d68d30129c4884..29bb1231b247deddfd70ea17ab01a344161764a4 100644 (file)
@@ -57,7 +57,7 @@ int CtdlDoIHavePermissionToPostInThisRoom(
                snprintf(errmsgbuf, n, "Not logged in.");
                return (ERROR + NOT_LOGGED_IN);
        }
-       else if (PostPublic == CHECK_EXISTANCE) {
+       else if (PostPublic == CHECK_EXIST) {
                return (0);                                     // evaluate whether a recipient exists
        }
        else if (!(CC->logged_in)) {
@@ -65,14 +65,6 @@ int CtdlDoIHavePermissionToPostInThisRoom(
                        snprintf(errmsgbuf, n, "Not logged in.");
                        return (ERROR + NOT_LOGGED_IN);
                }
-               if (CC->room.QRflags2 & QR2_MODERATED) {
-                       snprintf(errmsgbuf, n, "Not logged in Moderation feature not yet implemented!");
-                       return (ERROR + NOT_LOGGED_IN);
-               }
-               // FIXME what was this?  AJC 2021
-               //if ((PostPublic != POST_LMTP) && (CC->room.QRflags2 & QR2_SMTP_PUBLIC) == 0) {
-                       //return CtdlNetconfigCheckRoomaccess(errmsgbuf, n, RemoteIdentifier);
-               //}
                return (0);
        }