X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fedit_user.ml;h=b46b905cf272283255a80ec58d734f0e555b2e94;hb=32f71ff9f960ecb191f256a6cfc11a3f2c0c0cf7;hp=234c5a6d579695e2ce291966fd38c6ec28f5727b;hpb=529b55fe61e017417faae092fe221bbd41368aa5;p=cocanwiki.git diff --git a/scripts/edit_user.ml b/scripts/edit_user.ml index 234c5a6..b46b905 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.8 2004/10/23 15:00:14 rich Exp $ + * $Id: edit_user.ml,v 1.9 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 @@ -76,7 +76,7 @@ let run r (q : cgi) (dbh : Dbi.connection) hostid _ self = (* Trying to remove manage users permission from self? *) (match can_manage_users, self with - | false, User (id, _, _) when id = userid -> + | false, User (id, _, _, _) when id = userid -> error ~back_button:true ~title:"Remove manage users from self" q ("You tried to remove 'Manage users' permission from yourself. "^ "You can't do this. You'll have to do it from another "^