X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Faxletter.php;h=3b19bc374dc70857bdde0e222506f45d7cb0a76e;hb=6d1125dfec33e5e827cb1643fc38459488619af2;hp=081f487f916c3b03f5b1256a9b587b2665f08941;hpb=53fa9b70e83cb7d186ebcbb79d2c800834396088;p=platal.git diff --git a/modules/axletter.php b/modules/axletter.php index 081f487..3b19bc3 100644 --- a/modules/axletter.php +++ b/modules/axletter.php @@ -27,7 +27,7 @@ class AXLetterModule extends NewsletterModule { return array( 'ax' => $this->make_hook('nl', AUTH_COOKIE, 'user'), - 'ax/out' => $this->make_hook('out', AUTH_PUBLIC), + 'ax/out' => $this->make_hook('out', AUTH_COOKIE, 'user'), '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'), @@ -48,6 +48,7 @@ class AXLetterModule extends NewsletterModule function handler_out($page, $hash = null, $issue_id = null) { + $hash = ($hash == 'nohash') ? null : $hash; if (!$hash) { if (!S::logged()) { return PL_DO_AUTH;