Commit 8cd257de authored by Per Cederqvist's avatar Per Cederqvist

(add_recipient): Allow the text author to change the recipient type.

parent ad25dd53
/*
* $Id: text.c,v 0.75 1999/07/05 06:58:20 ceder Exp $
* $Id: text.c,v 0.76 1999/07/08 11:18:38 ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -34,7 +34,7 @@
#endif
static const char *
rcsid = "$Id: text.c,v 0.75 1999/07/05 06:58:20 ceder Exp $";
rcsid = "$Id: text.c,v 0.76 1999/07/08 11:18:38 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -2877,7 +2877,7 @@ send_async_add_recipient (Text_no text_no, Text_stat *text_s,
extern Success
add_recipient( Text_no text_no,
Conf_no conf_no,
Info_type type ) /* recpt or cc_recpt */
Info_type type ) /* recpt, cc_recpt or bcc_recpt */
{
Text_stat *t_stat;
Conference *conf_c;
......@@ -2924,9 +2924,12 @@ add_recipient( Text_no text_no,
return FAILURE;
}
if (!is_supervisor(conf_no, ACTPERS, ACT_P) &&
if (t_stat->author != ACTPERS &&
!is_supervisor(conf_no, ACTPERS, ACT_P) &&
!ENA(wheel, 8)) /* OK -- In an RPC call */
{
/* FIXME: if there is a sent-by misc-item that belongs to this,
the sender should also be allowed to do this. */
err_stat = conf_no;
kom_errno = KOM_PERM;
return FAILURE;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment