From 47d8ea876a79a3056ccfd0e9e1189947777d765f Mon Sep 17 00:00:00 2001 From: Petr Baudis Date: Thu, 24 Jul 2008 20:31:16 +0200 Subject: [PATCH] cgi/editproj.cgi: Add link to reguser.cgi to the users section --- cgi/editproj.cgi | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/cgi/editproj.cgi b/cgi/editproj.cgi index 91a991a..5fc829c 100755 --- a/cgi/editproj.cgi +++ b/cgi/editproj.cgi @@ -78,10 +78,13 @@ print <{mirror}) { print "

Warning: This is a mirrored repository, thus you cannot push into it. Changing the user set will have no practical effect.

\n"; -} elsif ($Girocco::Config::mob and not grep { $_ eq $Girocco::Config::mob } @{$h{users}}) { - print "

(Please consider adding the $Girocco::Config::mob user.\n"; - print "(learn more))\n"; - print "

\n"; +} else { + print "

Only registered users can push.

"; + if ($Girocco::Config::mob and not grep { $_ eq $Girocco::Config::mob } @{$h{users}}) { + print "

(Please consider adding the $Girocco::Config::mob user.\n"; + print "(learn more))\n"; + print "

\n"; + } } foreach my $user (@{$h{users}}) { print "
  • $user
  • \n"; -- 2.11.4.GIT