diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-04-14 18:10:18 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2006-04-14 18:10:18 +0000 |
commit | 3ff14ce12a0433ab687f257f6d11f2ebde311608 (patch) | |
tree | 650f5b919d85ee03505b4382fed8a03ed5872fde /IkiWiki | |
parent | c0659dcb6c864063c94ee9c6094e097938b461fe (diff) | |
download | ikiwiki-3ff14ce12a0433ab687f257f6d11f2ebde311608.tar ikiwiki-3ff14ce12a0433ab687f257f6d11f2ebde311608.tar.gz |
fix --anonok
Diffstat (limited to 'IkiWiki')
-rw-r--r-- | IkiWiki/CGI.pm | 6 |
1 files 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. |