X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Ffxletter.php;h=cb31058ee30511a85866349f8a22eb606fc7b7a1;hb=6d1125dfec33e5e827cb1643fc38459488619af2;hp=b47a5ad57e90d1852e2626951f9fd8254a4f9506;hpb=53fa9b70e83cb7d186ebcbb79d2c800834396088;p=platal.git diff --git a/modules/fxletter.php b/modules/fxletter.php index b47a5ad..cb31058 100644 --- a/modules/fxletter.php +++ b/modules/fxletter.php @@ -27,7 +27,7 @@ class FXLetterModule extends NewsletterModule { return array( 'fxletter' => $this->make_hook('nl', AUTH_COOKIE, 'user'), - 'fxletter/out' => $this->make_hook('out', AUTH_PUBLIC), + 'fxletter/out' => $this->make_hook('out', AUTH_COOKIE, 'user'), 'fxletter/show' => $this->make_hook('nl_show', AUTH_COOKIE, 'user'), 'fxletter/search' => $this->make_hook('nl_search', AUTH_COOKIE, 'user'), 'fxletter/admin' => $this->make_hook('admin_nl', AUTH_PASSWD, 'user'), @@ -48,6 +48,7 @@ class FXLetterModule 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;