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

query_read_texts now works.

parent 2a7ad74a
......@@ -668,11 +668,11 @@ query_read_texts(Pers_no victim,
Conf_no conf_no,
Membership * result) /* Points to area to store result in */
{
Person * pers_p;
Person * victim_p;
Membership * membp;
Access victim_acc;
GET_P_STAT( pers_p, victim, FAILURE);
GET_P_STAT( victim_p, victim, FAILURE);
victim_acc = access_perm(victim, NULL);
if ( victim_acc <= none )
......@@ -687,7 +687,7 @@ query_read_texts(Pers_no victim,
return FAILURE;
}
if ( (membp = locate_membership( victim, pers_p )) == NULL)
if ( (membp = locate_membership (conf_no, victim_p)) == NULL)
{
kom_errno = KOM_NOT_MEMBER;
return FAILURE;
......@@ -695,7 +695,7 @@ query_read_texts(Pers_no victim,
*result = *membp;
if ( pers_p->flags.unread_is_secret &&
if ( victim_p->flags.unread_is_secret &&
victim_acc != unlimited)
{
result->last_time_read = NO_TIME;
......
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