(* COCANWIKI scripts.
* Written by Richard W.M. Jones <rich@merjis.com>.
* Copyright (C) 2004 Merjis Ltd.
- * $Id: create.ml,v 1.2 2004/09/07 13:40:10 rich Exp $
+ * $Id: create.ml,v 1.4 2004/09/09 09:35:33 rich Exp $
*)
open Apache
open Cocanwiki_emailnotify
open Cocanwiki_ok
-let run r (q : cgi) (dbh : Dbi.connection) (hostid, hostname, _) _ =
+let run r (q : cgi) (dbh : Dbi.connection) hostid { hostname = hostname } _ =
(* Get the page title. *)
let title = q#param "title" in
q#redirect ("http://" ^ hostname ^ "/" ^ url ^ "/edit")
let () =
- register_script run
+ register_script ~restrict:[CanEdit] run