]> code.citadel.org Git - citadel.git/commitdiff
* allow users to move messages into a room they're allowed to post to.
authorWilfried Göesgens <willi@citadel.org>
Mon, 25 Feb 2008 20:03:29 +0000 (20:03 +0000)
committerWilfried Göesgens <willi@citadel.org>
Mon, 25 Feb 2008 20:03:29 +0000 (20:03 +0000)
* this fixes #345

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;