diff options
author | justdave%syndicomm.com <> | 2003-07-20 05:37:20 +0200 |
---|---|---|
committer | justdave%syndicomm.com <> | 2003-07-20 05:37:20 +0200 |
commit | 15c0c76706b274d7a3dadbebdfa18d5bd70bd80f (patch) | |
tree | 3ef2191f088b61ed855f081aae9c7d90f912168d /editusers.cgi | |
parent | ad8fdfeb71570e67bb23e80550e8dce01fc61c24 (diff) | |
download | bugzilla-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-x | editusers.cgi | 7 |
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; |