From: Joey Hess Date: Mon, 3 May 2010 17:46:52 +0000 (-0400) Subject: allow do=setup to log a user in if necessary X-Git-Tag: 3.20100504~19 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/0fc32c8b2fa1fc23c0c2c654ad64de7f85a271d1?ds=inline;hp=--cc allow do=setup to log a user in if necessary --- 0fc32c8b2fa1fc23c0c2c654ad64de7f85a271d1 diff --git a/IkiWiki/Plugin/websetup.pm b/IkiWiki/Plugin/websetup.pm index 3de8f4bf3..cb6a7e412 100644 --- a/IkiWiki/Plugin/websetup.pm +++ b/IkiWiki/Plugin/websetup.pm @@ -265,6 +265,8 @@ sub showform ($$) { my $cgi=shift; my $session=shift; + IkiWiki::needsignin($cgi, $session); + if (! defined $session->param("name") || ! IkiWiki::is_admin($session->param("name"))) { error(gettext("you are not logged in as an admin"));