Commit b7f9756e authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(get_unread_confs): It is sufficient that the viewer has

	read_protected access to a conference for it to be returned.
	(Bug 596).
parent 78654b62
/* /*
* $Id: membership.c,v 0.66 2002/06/15 20:32:28 ceder Exp $ * $Id: membership.c,v 0.67 2002/06/15 21:19:39 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association. * Copyright (C) 1991-2002 Lysator Academic Computer Association.
* *
* This file is part of the LysKOM server. * This file is part of the LysKOM server.
...@@ -1535,7 +1535,7 @@ get_unread_confs(Pers_no pers_no, ...@@ -1535,7 +1535,7 @@ get_unread_confs(Pers_no pers_no,
cached_get_highest_local_no(confs->conf_no)) && cached_get_highest_local_no(confs->conf_no)) &&
(ACTPERS == pers_no || /* No need to check permissions (ACTPERS == pers_no || /* No need to check permissions
when fetching ones own info. */ when fetching ones own info. */
access_perm(confs->conf_no, active_connection, limited) > access_perm(confs->conf_no, active_connection, read_protected) >=
read_protected)) read_protected))
{ {
result->conf_nos[ result->no_of_confs++ ] = confs->conf_no; result->conf_nos[ result->no_of_confs++ ] = confs->conf_no;
......
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