From 15c0c76706b274d7a3dadbebdfa18d5bd70bd80f Mon Sep 17 00:00:00 2001
From: "justdave%syndicomm.com" <>
Date: Sun, 20 Jul 2003 03:37:20 +0000
Subject: 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
---
editusers.cgi | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
(limited to 'editusers.cgi')
diff --git a/editusers.cgi b/editusers.cgi
index b4ed7c2d0..ecd179793 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;
--
cgit v1.2.1