Fix auth level required for email testing.
authorFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 2 Oct 2007 19:13:04 +0000 (21:13 +0200)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Tue, 2 Oct 2007 19:13:04 +0000 (21:13 +0200)
Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
modules/email.php

index a5975cd..27fbdd7 100644 (file)
@@ -31,7 +31,7 @@ class EmailModule extends PLModule
             'emails/redirect' => $this->make_hook('redirect', AUTH_MDP),
             'emails/send'     => $this->make_hook('send', AUTH_MDP),
             'emails/antispam/submit'  => $this->make_hook('submit', AUTH_COOKIE),
-            'emails/test'     => $this->make_hook('test', AUTH_PUBLIC),
+            'emails/test'     => $this->make_hook('test', AUTH_COOKIE, 'user', NO_AUTH),
 
             'admin/emails/duplicated' => $this->make_hook('duplicated', AUTH_MDP, 'admin'),
             'admin/emails/watch'      => $this->make_hook('duplicated', AUTH_MDP, 'admin'),