X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fdelete_user_form.ml;h=7924d01f3c7b8bc5e0a4a129d2edcbfb170a9405;hb=65966a769fea12308cf5a1bccee53d80483ee444;hp=f982f1efd5dd0b95a0594773caf9b60400abe57a;hpb=867889b6d04b6381c74974e338672ee02d61920e;p=cocanwiki.git diff --git a/scripts/delete_user_form.ml b/scripts/delete_user_form.ml index f982f1e..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.1 2004/09/21 13:01:15 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,10 +37,10 @@ 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."; - raise CgiExit + return () | _ -> () in (* Get this user from the database. *)