X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=scripts%2Fpage.ml;h=d1e8b09bc5c9a2e311c2b765b16703676c787453;hb=f400231d6f611c83fdbe1df8ff29835a972db677;hp=7001a08588367141e9fd2e5873ec934f43e135f8;hpb=5fbc0955aef8b887a7bd1d91ff7b1a0ba9d1b90a;p=cocanwiki.git diff --git a/scripts/page.ml b/scripts/page.ml index 7001a08..d1e8b09 100644 --- a/scripts/page.ml +++ b/scripts/page.ml @@ -1,7 +1,7 @@ (* COCANWIKI - a wiki written in Objective CAML. * Written by Richard W.M. Jones . * Copyright (C) 2004 Merjis Ltd. - * $Id: page.ml,v 1.46 2006/07/26 13:11:25 rich Exp $ + * $Id: page.ml,v 1.47 2006/07/26 13:19:49 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 @@ -299,6 +299,11 @@ let run r (q : cgi) dbh hostid t#conditional "user_logged_in" true; t#set "username" username); + (* Can anonymous users create accounts? If not them we don't + * want to offer to create accounts for them. + *) + t#conditional "create_account_anon" host.create_account_anon; + (* If logged in, we want to update the recently_visited table. *) if pageid <> None then ( match user with