X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fevents.php;h=7395568f21aff5941ea4f60eb22760f6e0155247;hb=c7fdb61130b1b8d68e6cca79dc50d1eb6777a3d0;hp=3c4df286a540154acc19ad8f645551ebe53ff723;hpb=47f517897206a0b953214f19b96a42f2707fc107;p=platal.git diff --git a/modules/events.php b/modules/events.php index 3c4df28..7395568 100644 --- a/modules/events.php +++ b/modules/events.php @@ -24,15 +24,15 @@ class EventsModule extends PLModule function handlers() { return array( - 'events' => $this->make_hook('ev', AUTH_COOKIE), + 'events' => $this->make_hook('ev', AUTH_COOKIE, 'user'), 'events/preview' => $this->make_hook('preview', AUTH_PUBLIC, 'user', NO_AUTH), 'events/photo' => $this->make_hook('photo', AUTH_PUBLIC), - 'events/submit' => $this->make_hook('ev_submit', AUTH_MDP), - 'admin/events' => $this->make_hook('admin_events', AUTH_MDP, 'admin'), - 'rss' => $this->make_token_hook('rss', AUTH_COOKIE), + 'events/submit' => $this->make_hook('ev_submit', AUTH_PASSWD, 'user'), + 'admin/events' => $this->make_hook('admin_events', AUTH_PASSWD, 'admin'), + 'rss' => $this->make_token_hook('rss', AUTH_COOKIE, 'user'), 'ajax/tips' => $this->make_hook('tips', AUTH_COOKIE, 'user', NO_AUTH), - 'admin/tips' => $this->make_hook('admin_tips', AUTH_MDP, 'admin'), + 'admin/tips' => $this->make_hook('admin_tips', AUTH_PASSWD, 'admin'), ); }