X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fdelete_user.ml;h=bcb52c61a4dbec7b109aeee1e778d9d98b8eb311;hb=e336401181f56f19ec18175d47462e7a5d5f07e2;hp=469e45cc6a8e9f400f84bffd3420164588bd8378;hpb=529b55fe61e017417faae092fe221bbd41368aa5;p=cocanwiki.git diff --git a/scripts/delete_user.ml b/scripts/delete_user.ml index 469e45c..bcb52c6 100644 --- a/scripts/delete_user.ml +++ b/scripts/delete_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: delete_user.ml,v 1.3 2004/10/23 15:00:14 rich Exp $ + * $Id: delete_user.ml,v 1.4 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 @@ -48,7 +48,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid {hostname = hostname} 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 ()