chiark / gitweb /
Fix rights checking when updating a logged-in user's rights.
authorRichard Kettlewell <rjk@greenend.org.uk>
Thu, 10 Jan 2008 13:50:30 +0000 (13:50 +0000)
committerRichard Kettlewell <rjk@greenend.org.uk>
Thu, 10 Jan 2008 13:50:30 +0000 (13:50 +0000)
server/server.c

index 5e8f2208baffd6cddba8d72034fc81c2afdb1577..67b1fdcb4b95b21340c2375f99b495042cecb1d8 100644 (file)
@@ -1154,7 +1154,7 @@ static int c_edituser(struct conn *c,
       /* Update rights for this user */
       rights_type r;
 
-      if(parse_rights(vec[1], &r, 1))
+      if(parse_rights(vec[2], &r, 1))
        for(d = connections; d; d = d->next)
          if(!strcmp(d->who, vec[0]))
            d->rights = r;