summaryrefslogtreecommitdiffstats
path: root/CGI.pl
diff options
context:
space:
mode:
Diffstat (limited to 'CGI.pl')
-rw-r--r--CGI.pl6
1 files changed, 6 insertions, 0 deletions
diff --git a/CGI.pl b/CGI.pl
index 8770da748..93c5d544f 100644
--- a/CGI.pl
+++ b/CGI.pl
@@ -846,6 +846,12 @@ sub GetCommandMenu {
my $mybugstemplate = Param("mybugstemplate");
my %substs;
$substs{'userid'} = $::COOKIE{"Bugzilla_login"};
+ if (!defined $::anyvotesallowed) {
+ GetVersionTable();
+ }
+ if ($::anyvotesallowed) {
+ $html .= qq{ | <A HREF="showvotes.cgi">My votes</A>};
+ }
my $mybugsurl = PerformSubsts($mybugstemplate, \%substs);
$html = $html . " | <a href='$mybugsurl'>My bugs</a>";
}