X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fdelete_user_form.ml;h=7924d01f3c7b8bc5e0a4a129d2edcbfb170a9405;hb=65966a769fea12308cf5a1bccee53d80483ee444;hp=382814ad05a1d6576c245d8564b74efa47c6a267;hpb=6b0b6830a2e784eee99dcd1b1a3cb8b44e27c765;p=cocanwiki.git diff --git a/scripts/delete_user_form.ml b/scripts/delete_user_form.ml index 382814a..7924d01 100644 --- a/scripts/delete_user_form.ml +++ b/scripts/delete_user_form.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: delete_user_form.ml,v 1.2 2004/09/23 11:56:47 rich Exp $ + * $Id: delete_user_form.ml,v 1.3 2004/10/30 10:16:10 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 @@ -37,7 +37,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ self = (* Can't delete self! *) let () = match self with - | User (id, _, _) when id = userid -> + | User (id, _, _, _) when id = userid -> error ~back_button:true ~title:"Delete own account" q "You cannot delete your own user account."; return ()