Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
8cd257de
Commit
8cd257de
authored
Jul 08, 1999
by
Per Cederqvist
Browse files
(add_recipient): Allow the text author to change the recipient type.
parent
ad25dd53
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server/text.c
View file @
8cd257de
/*
* $Id: text.c,v 0.7
5
1999/07/0
5 06:58:20
ceder Exp $
* $Id: text.c,v 0.7
6
1999/07/0
8 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.7
5
1999/07/0
5 06:58:20
ceder Exp $"
;
rcsid
=
"$Id: text.c,v 0.7
6
1999/07/0
8 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
b
cc_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
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment