(* COCANWIKI - a wiki written in Objective CAML.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: edit_user.ml,v 1.3 2004/09/09 12:21:22 rich Exp $
+ * $Id: edit_user.ml,v 1.4 2004/09/17 15:24:54 rich Exp $
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
let can_edit = q#param_true "can_edit" in
let can_manage_users = q#param_true "can_manage_users" in
+ let can_manage_contacts = q#param_true "can_manage_contacts" in
(* Trying to remove manage users permission from self? *)
(match can_manage_users, self with
| _ -> ());
let sth = dbh#prepare_cached "update users set email = ?,
- can_edit = ?, can_manage_users = ?
+ can_edit = ?, can_manage_users = ?,
+ can_manage_contacts = ?
where hostid = ? and id = ?" in
sth#execute [email; `Bool can_edit; `Bool can_manage_users;
+ `Bool can_manage_contacts;
`Int hostid; `Int userid];
(* Finish up. *)