X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;ds=sidebyside;f=modules%2Faxletter.php;h=a09cb72fc1d70e5cc1cca2a49297704e8d9a875e;hb=4bd9c76e6cde6b4bdd63d5ea4546c42f9710325a;hp=2c8a8d8deabdcf4c625ef99d0cc1e03eda3c4555;hpb=5ae3e9a9b7e095956904a2bedbc0845af88434f0;p=platal.git diff --git a/modules/axletter.php b/modules/axletter.php index 2c8a8d8..a09cb72 100644 --- a/modules/axletter.php +++ b/modules/axletter.php @@ -26,15 +26,17 @@ class AXLetterModule extends NewsletterModule function handlers() { return array( - 'ax' => $this->make_hook('nl', AUTH_COOKIE), + '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), - 'ax/search' => $this->make_hook('nl_search', 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/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'), + 'ax/stat' => $this->make_hook('stat_nl', AUTH_PASSWD, 'user') ); } @@ -44,14 +46,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); } }