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
9e2033d8
Commit
9e2033d8
authored
Jun 29, 1994
by
Per Cederqvist
Browse files
(add_recipient): Check that the user is allowed to write texts in the
conference, and fail with KOM_PERM otherwise.
parent
aeb7fc96
Changes
1
Show whitespace changes
Inline
Side-by-side
src/server/text.c
View file @
9e2033d8
/*
* $Id: text.c,v 0.3
0
1994/06/29 23:
0
8:
2
0 ceder Exp $
* $Id: text.c,v 0.3
1
1994/06/29 23:
2
8:
3
0 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -28,7 +28,7 @@
* All atomic calls that deals with texts.
*/
static
char
*
rcsid
=
"$Id: text.c,v 0.3
0
1994/06/29 23:
0
8:
2
0 ceder Exp $"
;
static
char
*
rcsid
=
"$Id: text.c,v 0.3
1
1994/06/29 23:
2
8:
3
0 ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
...
...
@@ -2165,6 +2165,14 @@ add_recipient( Text_no text_no,
return
FAILURE
;
}
/* FIXME: Should extract the "is allowed to write to this conference"
test from submit_to(). */
if
(
submit_to
(
conf_no
,
conf_c
)
!=
conf_no
)
{
kom_errno
=
KOM_PERM
;
return
FAILURE
;
}
switch
(
type
)
{
case
recpt
:
...
...
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