From 3ff14ce12a0433ab687f257f6d11f2ebde311608 Mon Sep 17 00:00:00 2001 From: joey Date: Fri, 14 Apr 2006 18:10:18 +0000 Subject: [PATCH] fix --anonok --- IkiWiki/CGI.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/IkiWiki/CGI.pm b/IkiWiki/CGI.pm index ac5365b2f..8201351ca 100644 --- a/IkiWiki/CGI.pm +++ b/IkiWiki/CGI.pm @@ -516,9 +516,9 @@ sub cgi () { #{{{ umask($oldmask); # Everything below this point needs the user to be signed in. - if ((! $config{anonok} && ! defined $session->param("name") || - ! defined $session->param("name") || - ! userinfo_get($session->param("name"), "regdate")) || $do eq 'signin') { + if ((! $config{anonok} && + (! defined $session->param("name") || + ! userinfo_get($session->param("name"), "regdate"))) || $do eq 'signin') { cgi_signin($q, $session); # Force session flush with safe umask. -- 2.39.5