summaryrefslogtreecommitdiffstats
path: root/editusers.cgi
diff options
context:
space:
mode:
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;