]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 178935: Eliminating the "Add another user" link on the confirmation screen after...
authorjustdave%syndicomm.com <>
Sun, 20 Jul 2003 03:37:20 +0000 (03:37 +0000)
committerjustdave%syndicomm.com <>
Sun, 20 Jul 2003 03:37:20 +0000 (03:37 +0000)
Patch by kniht@us.ibm.com
r= justdave, a= justdave

editusers.cgi

index b4ed7c2d017290a5514d5416cc5c0cb542956070..ecd179793d8c78304b9b5e2faf1bcedaa435d328 100755 (executable)
@@ -207,8 +207,11 @@ sub EmitFormElements ($$$$)
 
 sub PutTrailer (@)
 {
-    my (@links) = ("Back to the <A HREF=\"./\">index</A>",
-        "<A HREF=\"editusers.cgi?action=add\">Add a new user</A>", @_);
+    my (@links) = ("Back to the <A HREF=\"./\">index</A>");
+    if($editall && Bugzilla::Auth->can_edit) {
+          push(@links, "<A HREF=\"editusers.cgi?action=add\">Add a new user</A>");
+    }
+    push(@links, @_);
 
     my $count = $#links;
     my $num = 0;