X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Faxletter.php;h=081f487f916c3b03f5b1256a9b587b2665f08941;hb=2d394628dc35b7da99a73128df15ad980e69197c;hp=99d45ad3e43c661c1b0099c00377e20da02175d2;hpb=ff0299c9feeeb22d8ceeae4219bd6293605fe190;p=platal.git diff --git a/modules/axletter.php b/modules/axletter.php index 99d45ad..081f487 100644 --- a/modules/axletter.php +++ b/modules/axletter.php @@ -1,6 +1,6 @@ $this->make_hook('nl', AUTH_COOKIE), - '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' => $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'), + 'ax/stat' => $this->make_hook('stat_nl', AUTH_PASSWD, 'user') ); } @@ -44,16 +46,16 @@ 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); } } -// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8: +// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8: ?>