X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fepletter.php;h=c3799aac643e56ea56835558808b0528ccfe18c7;hb=3796392e46bb793fcdbf6c67e4217f86355edcf0;hp=ac4ef72516b0d3ebd771d113c0f0e157761cc0be;hpb=d82359a556779137f8a90d0312b3098a2db6f482;p=platal.git diff --git a/modules/epletter.php b/modules/epletter.php index ac4ef72..c3799aa 100644 --- a/modules/epletter.php +++ b/modules/epletter.php @@ -26,15 +26,17 @@ class EPLetterModule extends NewsletterModule function handlers() { return array( - 'epletter' => $this->make_hook('nl', AUTH_COOKIE), + 'epletter' => $this->make_hook('nl', AUTH_COOKIE, 'user'), 'epletter/out' => $this->make_hook('out', AUTH_PUBLIC), - 'epletter/show' => $this->make_hook('nl_show', AUTH_COOKIE), - 'epletter/search' => $this->make_hook('nl_search', AUTH_COOKIE), - 'epletter/admin' => $this->make_hook('admin_nl', AUTH_MDP), - 'epletter/admin/edit' => $this->make_hook('admin_nl_edit', AUTH_MDP), - 'epletter/admin/edit/valid' => $this->make_hook('admin_nl_valid', AUTH_MDP), - 'epletter/admin/edit/cancel' => $this->make_hook('admin_nl_cancel', AUTH_MDP), - 'epletter/admin/edit/delete' => $this->make_hook('admin_nl_delete', AUTH_MDP), + 'epletter/show' => $this->make_hook('nl_show', AUTH_COOKIE, 'user'), + 'epletter/search' => $this->make_hook('nl_search', AUTH_COOKIE, 'user'), + 'epletter/admin' => $this->make_hook('admin_nl', AUTH_PASSWD, 'user'), + 'epletter/admin/edit' => $this->make_hook('admin_nl_edit', AUTH_PASSWD, 'user'), + 'epletter/admin/edit/valid' => $this->make_hook('admin_nl_valid', AUTH_PASSWD, 'user'), + 'epletter/admin/edit/cancel' => $this->make_hook('admin_nl_cancel', AUTH_PASSWD, 'user'), + 'epletter/admin/edit/delete' => $this->make_hook('admin_nl_delete', AUTH_PASSWD, 'user'), + 'epletter/admin/categories' => $this->make_hook('admin_nl_cat', AUTH_PASSWD, 'user'), + 'epletter/stat' => $this->make_hook('stat_nl', AUTH_PASSWD, 'user') ); } @@ -44,14 +46,14 @@ class EPLetterModule extends NewsletterModule return NewsLetter::forGroup(NewsLetter::GROUP_EP); } - function handler_out($page, $hash = null) + function handler_out($page, $hash = null, $issue_id = null) { if (!$hash) { if (!S::logged()) { return PL_DO_AUTH; } } - return $this->handler_nl($page, 'out', $hash); + return $this->handler_nl($page, 'out', $hash, $issue_id); } }