From: justdave%syndicomm.com <>
Date: Sun, 20 Jul 2003 03:37:20 +0000 (+0000)
Subject: Bug 178935: Eliminating the "Add another user" link on the confirmation screen after...
X-Git-Tag: bugzilla-2.17.5~102
X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=15c0c76706b274d7a3dadbebdfa18d5bd70bd80f;p=thirdparty%2Fbugzilla.git
Bug 178935: Eliminating the "Add another user" link on the confirmation screen after editing a user if the user doing the editing doesn't have permission to add users.
Patch by kniht@us.ibm.com
r= justdave, a= justdave
---
diff --git a/editusers.cgi b/editusers.cgi
index b4ed7c2d01..ecd179793d 100755
--- a/editusers.cgi
+++ b/editusers.cgi
@@ -207,8 +207,11 @@ sub EmitFormElements ($$$$)
sub PutTrailer (@)
{
- my (@links) = ("Back to the index",
- "Add a new user", @_);
+ my (@links) = ("Back to the index");
+ if($editall && Bugzilla::Auth->can_edit) {
+ push(@links, "Add a new user");
+ }
+ push(@links, @_);
my $count = $#links;
my $num = 0;