X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fedit_user.ml;h=2f861c7e762ab8d63b3bcc1f91a7b1da8f7ba709;hb=6eacefcb7258db7b56fe796af84961cafac90eac;hp=fb1da46389a92561c3bbb998be0e104627b82213;hpb=6b0b6830a2e784eee99dcd1b1a3cb8b44e27c765;p=cocanwiki.git diff --git a/scripts/edit_user.ml b/scripts/edit_user.ml index fb1da46..2f861c7 100644 --- a/scripts/edit_user.ml +++ b/scripts/edit_user.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: edit_user.ml,v 1.6 2004/09/23 11:56:47 rich Exp $ + * $Id: edit_user.ml,v 1.7 2004/10/11 14:13:04 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 @@ -75,6 +75,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ self = let can_manage_contacts = q#param_true "can_manage_contacts" in let can_manage_site = q#param_true "can_manage_site" in let can_edit_global_css = q#param_true "can_edit_global_css" in + let can_import_mail = q#param_true "can_import_mail" in (* Trying to remove manage users permission from self? *) (match can_manage_users, self with @@ -90,11 +91,12 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ self = can_edit = ?, can_manage_users = ?, can_manage_contacts = ?, can_manage_site = ?, - can_edit_global_css = ? + can_edit_global_css = ?, + can_import_mail = ? where hostid = ? and id = ?" in sth#execute [email; `Bool can_edit; `Bool can_manage_users; `Bool can_manage_contacts; `Bool can_manage_site; - `Bool can_edit_global_css; + `Bool can_edit_global_css; `Bool can_import_mail; `Int hostid; `Int userid]; (* Finish up. *)