summaryrefslogtreecommitdiffstats
path: root/editusers.cgi
diff options
context:
space:
mode:
authorjustdave%syndicomm.com <>2003-07-20 05:37:20 +0200
committerjustdave%syndicomm.com <>2003-07-20 05:37:20 +0200
commit15c0c76706b274d7a3dadbebdfa18d5bd70bd80f (patch)
tree3ef2191f088b61ed855f081aae9c7d90f912168d /editusers.cgi
parentad8fdfeb71570e67bb23e80550e8dce01fc61c24 (diff)
downloadbugzilla-15c0c76706b274d7a3dadbebdfa18d5bd70bd80f.tar.gz
bugzilla-15c0c76706b274d7a3dadbebdfa18d5bd70bd80f.tar.xz
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
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-xeditusers.cgi7
1 files changed, 5 insertions, 2 deletions
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 <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;