allow do=setup to log a user in if necessary

master
Joey Hess 2010-05-03 13:46:52 -04:00
parent 2f22ee85e5
commit 0fc32c8b2f
1 changed files with 2 additions and 0 deletions

View File

@ -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"));