]> code.citadel.org Git - citadel.git/blobdiff - citadel/msgbase.c
* allow users to move messages into a room they're allowed to post to.
[citadel.git] / citadel / msgbase.c
index dc4032160768cf304e9797811e4dbd5ca1414750..da1498f2b715d7e3051679f99bcfac29c9fc1aae 100644 (file)
@@ -4016,6 +4016,10 @@ void cmd_move(char *args)
        /* Permit message removal from collaborative delete rooms */
        if (CC->room.QRflags2 & QR2_COLLABDEL) permit = 1;
 
+       /* Users allowed to post into the target room may move into it too. */
+       if ((CC->room.QRflags & QR_MAILBOX) && 
+           (qtemp.QRflags & UA_POSTALLOWED))  permit = 1;
+
        /* User must have access to target room */
        if (!(ra & UA_KNOWN))  permit = 0;