Modified all scripts with appropriate restrictions based on
[cocanwiki.git] / scripts / recent.ml
index a1b53be..4af4886 100644 (file)
@@ -1,7 +1,7 @@
 (* COCANWIKI scripts.
  * Written by Richard W.M. Jones <rich@merjis.com>.
  * Copyright (C) 2004 Merjis Ltd.
- * $Id: recent.ml,v 1.2 2004/09/07 13:40:10 rich Exp $
+ * $Id: recent.ml,v 1.4 2004/09/08 09:54:28 rich Exp $
  *)
 
 open Apache
@@ -11,6 +11,7 @@ open Printf
 
 open Cocanwiki
 open Cocanwiki_template
+open Cocanwiki_date
 
 let template = get_template "recent.html"
 
@@ -66,4 +67,4 @@ let run r (q : cgi) (dbh : Dbi.connection) (hostid, _, _) _ =
   q#template template
 
 let () =
-  register_script run
+  register_script ~restrict:[CanEdit] run