Bug 178935: Eliminating the "Add another user" link on the confirmation screen…

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
parent ad8fdfeb
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment