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
907f2cfe
Commit
907f2cfe
authored
Sep 05, 2000
by
Per Cederqvist
Browse files
(filter_conf_no): New function.
parent
f1b15112
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/server/manipulate.h
View file @
907f2cfe
/*
* $Id: manipulate.h,v 0.2
8
2000/09/0
2
19:
47:56
ceder Exp $
* $Id: manipulate.h,v 0.2
9
2000/09/0
5
19:
52:37
ceder Exp $
* Copyright (C) 1991-1994, 1996-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -23,7 +23,7 @@
* Please mail bug reports to bug-lyskom@lysator.liu.se.
*/
/*
* $Id: manipulate.h,v 0.2
8
2000/09/0
2
19:
47:56
ceder Exp $
* $Id: manipulate.h,v 0.2
9
2000/09/0
5
19:
52:37
ceder Exp $
*
* manipulate.h
*
...
...
@@ -215,6 +215,14 @@ access_perm(Conf_no victim,
const
Connection
*
viewer_conn
,
Access
wanted_access
);
/* Return VICTIM if the user user logged in via VIEWER_CONN is allowed
to see it, or 0 if it is a secret conference that the user isn't
allowed to see. */
extern
Conf_no
filter_conf_no
(
Conf_no
victim
,
const
Connection
*
viewer_conn
);
/*
...
...
src/server/membership.c
View file @
907f2cfe
/*
* $Id: membership.c,v 0.5
6
2000/09/0
2
19:5
0:33
ceder Exp $
* $Id: membership.c,v 0.5
7
2000/09/0
5
19:5
3:41
ceder Exp $
* Copyright (C) 1991-1999 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -38,7 +38,7 @@
#define DEBUG_MARK_AS_READ
static
const
char
*
rcsid
=
"$Id: membership.c,v 0.5
6
2000/09/0
2
19:5
0:33
ceder Exp $"
;
rcsid
=
"$Id: membership.c,v 0.5
7
2000/09/0
5
19:5
3:41
ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
...
...
@@ -819,6 +819,16 @@ access_perm(Conf_no victim,
}
Conf_no
filter_conf_no
(
Conf_no
victim
,
const
Connection
*
viewer_conn
)
{
if
(
access_perm
(
victim
,
viewer_conn
,
read_protected
)
>=
read_protected
)
return
victim
;
else
return
0
;
}
/*
* Locate the Member struct in CONF_C for person PERS_NO
...
...
Write
Preview
Markdown
is supported
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