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

(sub_member): Added comments for bug 612.

parent bb08e93f
/*
* $Id: membership.c,v 0.67 2002/06/15 21:19:39 ceder Exp $
* $Id: membership.c,v 0.68 2002/08/08 11:16:28 ceder Exp $
* Copyright (C) 1991-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -891,6 +891,8 @@ sub_member( Conf_no conf_no,
if( (mship = locate_membership(conf_no, pers_p) ) == NULL)
{
err_stat = conf_no;
/* FIXME (bug 612): we should not return KOM_UNDEF_CONF if the
user is allowed to see the conference. */
kom_errno = conf_c->type.secret ? KOM_UNDEF_CONF : KOM_NOT_MEMBER;
return FAILURE;
}
......@@ -902,6 +904,8 @@ sub_member( Conf_no conf_no,
{
err_stat = conf_no;
if (conf_c->type.secret)
/* FIXME (bug 612): we should not return KOM_UNDEF_CONF if
the user is allowed to see the conference. */
kom_errno = KOM_UNDEF_CONF;
else if (mship->type.secret)
kom_errno = KOM_NOT_MEMBER;
......@@ -1711,5 +1715,3 @@ extern Success set_membership_type(Pers_no pers_no,
/* Return success */
return OK;
}
Supports Markdown
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