Commit 72b159ba authored by David Byers's avatar David Byers

(modify_text_info): Added author as owner argument to

check_delete_aux_item_list.
parent 5e84bba4
/*
* $Id: text.c,v 0.80 2000/09/06 19:54:33 ceder Exp $
* $Id: text.c,v 0.81 2001/09/22 13:41:26 byers Exp $
* Copyright (C) 1991-2000 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.80 2000/09/06 19:54:33 ceder Exp $";
rcsid = "$Id: text.c,v 0.81 2001/09/22 13:41:26 byers Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -466,7 +466,8 @@ is_member_in_recpt(const Person *person,
if ((mship = locate_membership(
text_s->misc_items[i].datum.recipient, person)) != NULL)
{
return !(mship->type.passive && skip_passive);
if (!(mship->type.passive && skip_passive))
return TRUE;
}
break;
......@@ -474,7 +475,8 @@ is_member_in_recpt(const Person *person,
if ((mship = locate_membership(
text_s->misc_items[i].datum.cc_recipient, person)) != NULL)
{
return !(mship->type.passive && skip_passive);
if (!(mship->type.passive && skip_passive))
return TRUE;
}
break;
......@@ -482,7 +484,8 @@ is_member_in_recpt(const Person *person,
if ((mship = locate_membership(
text_s->misc_items[i].datum.bcc_recipient, person)) != NULL)
{
return !(mship->type.passive && skip_passive);
if (!(mship->type.passive && skip_passive))
return TRUE;
}
break;
......@@ -3428,7 +3431,9 @@ modify_text_info(Text_no text,
prepare_aux_item_list(aux, ACTPERS);
if (check_delete_aux_item_list(items_to_delete,&text_s->aux_item_list)!=OK)
if (check_delete_aux_item_list(items_to_delete,
&text_s->aux_item_list,
text_s->author)!=OK)
return FAILURE;
delete_aux_item_list(items_to_delete,
&text_s->aux_item_list,
......
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