Commit 706ea4f7 authored by Per Cederqvist's avatar Per Cederqvist
Browse files

(set_passwd): Use new API of is_supervisor(). Simplify and reindent code.

parent c7b9aaac
/*
* $Id: person.c,v 0.81 2003/08/16 11:28:59 ceder Exp $
* $Id: person.c,v 0.82 2003/08/17 11:09:09 ceder Exp $
* Copyright (C) 1991-1999, 2001-2002 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -978,10 +978,8 @@ set_passwd (Pers_no person,
GET_P_STAT(p, person, FAILURE);
if ( person != ACTPERS &&
!ENA(wheel, 7) && /* OK -- In an RPC call */
!ENA(wheel, 8) && /* OK -- In an RPC call */
!is_supervisor (person, ACTPERS, ACT_P) )
if (!is_supervisor(person, active_connection)
&& !ENA(wheel, 7)) /* OK -- In an RPC call */
{
err_stat = person;
kom_errno = KOM_PERM;
......
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