]> code.citadel.org Git - citadel.git/commit
CtdlRoomAccess() can now return a new value UA_REPLYALLOWED, which
authorArt Cancro <ajc@citadel.org>
Tue, 14 Sep 2010 13:50:32 +0000 (09:50 -0400)
committerArt Cancro <ajc@citadel.org>
Tue, 14 Sep 2010 13:50:32 +0000 (09:50 -0400)
commit3b6521dfd5ea451134bb92233c9a1f3ffc03e699
treeedf34f53d17b87ad56cf4336c1b21f7791790eab
parent18473f6c7de58f93f1e3a71eae553e7b06063493
CtdlRoomAccess() can now return a new value UA_REPLYALLOWED, which
indicates that the user may post a message to this room *if* it is
a reply to an existing message.

CtdlDoIHavePermissionToPostInThisRoom() now must be told whether
the user is replying to an existing message or posting a top-level
message.  If it is a reply, UA_REPLYALLOWED is checked.  If it is
a top-level message, UA_POSTALLOWED is checked.  If UA_POSTALLOWED
is not set, but UA_REPLYALLOWED is set, and the message is not a
reply, a new error message indicates that the user may only reply
to existing messages.  I may add a new error code for this later.
citadel/ipcdef.h
citadel/msgbase.c
citadel/msgbase.h
citadel/room_ops.c