X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Faxletter.php;h=4ebf134ffecd632963e44a03cfd93588071ae57f;hb=15d26d450f109e27b8fad7839d98ebae788147e7;hp=9467dd08b03ec80a1ed8bf0141ca7e9a2ebc3433;hpb=84163d5890a4217f6087b274051dcc99cbbafc29;p=platal.git diff --git a/modules/axletter.php b/modules/axletter.php index 9467dd0..4ebf134 100644 --- a/modules/axletter.php +++ b/modules/axletter.php @@ -26,14 +26,16 @@ class AXLetterModule extends NewsletterModule function handlers() { return array( - 'ax' => $this->make_hook('nl', AUTH_COOKIE), - 'ax/out' => $this->make_hook('out', AUTH_PUBLIC), - 'ax/show' => $this->make_hook('nl_show', AUTH_COOKIE), - 'ax/admin' => $this->make_hook('admin_nl', AUTH_MDP), - 'ax/admin/edit' => $this->make_hook('admin_nl_edit', AUTH_MDP), - 'ax/admin/edit/valid' => $this->make_hook('admin_nl_valid', AUTH_MDP), - 'ax/admin/edit/cancel' => $this->make_hook('admin_nl_cancel', AUTH_MDP), - 'ax/admin/edit/delete' => $this->make_hook('admin_nl_delete', AUTH_MDP), + 'ax' => $this->make_hook('nl', AUTH_COOKIE, 'user'), + 'ax/out' => $this->make_hook('out', AUTH_PUBLIC), + 'ax/show' => $this->make_hook('nl_show', AUTH_COOKIE, 'user'), + 'ax/search' => $this->make_hook('nl_search', AUTH_COOKIE, 'user'), + 'ax/admin' => $this->make_hook('admin_nl', AUTH_PASSWD, 'user'), + 'ax/admin/edit' => $this->make_hook('admin_nl_edit', AUTH_PASSWD, 'user'), + 'ax/admin/edit/valid' => $this->make_hook('admin_nl_valid', AUTH_PASSWD, 'user'), + 'ax/admin/edit/cancel' => $this->make_hook('admin_nl_cancel', AUTH_PASSWD, 'user'), + 'ax/admin/edit/delete' => $this->make_hook('admin_nl_delete', AUTH_PASSWD, 'user'), + 'ax/admin/categories' => $this->make_hook('admin_nl_cat', AUTH_PASSWD, 'user'), ); } @@ -43,14 +45,14 @@ class AXLetterModule extends NewsletterModule return NewsLetter::forGroup(NewsLetter::GROUP_AX); } - 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); } }