summaryrefslogtreecommitdiffstats
path: root/votes.cgi
diff options
context:
space:
mode:
authorbugreport%peshkin.net <>2002-10-02 09:46:22 +0200
committerbugreport%peshkin.net <>2002-10-02 09:46:22 +0200
commit901d92851f0a1971fa446d5e7032ea42b0c9a2ba (patch)
treea2262be17d8140bf616b5ad00aa7f307bdaabbe1 /votes.cgi
parentbaada6e8807e84dfa22a9fecdd4885839e9cab2d (diff)
downloadbugzilla-901d92851f0a1971fa446d5e7032ea42b0c9a2ba.tar.gz
bugzilla-901d92851f0a1971fa446d5e7032ea42b0c9a2ba.tar.xz
Bug 172010 voting broken on tip
Regression from 43600 and 157756 2xr=bbaetz
Diffstat (limited to 'votes.cgi')
-rwxr-xr-xvotes.cgi4
1 files changed, 3 insertions, 1 deletions
diff --git a/votes.cgi b/votes.cgi
index 3bfe11682..52dfb0f5c 100755
--- a/votes.cgi
+++ b/votes.cgi
@@ -134,6 +134,7 @@ sub show_user {
my $canedit = 1 if ($name eq $::COOKIE{'Bugzilla_login'});
SendSQL("LOCK TABLES bugs READ, products READ, votes WRITE,
+ cc READ, bug_group_map READ, user_group_map READ,
cc AS selectVisible_cc READ");
if ($canedit && $bug_id) {
@@ -314,7 +315,8 @@ sub record_votes {
# for products that only allow one vote per bug). In that case, we still
# need to clear the user's votes from the database.
my %affected;
- SendSQL("LOCK TABLES bugs write, votes write, products read");
+ SendSQL("LOCK TABLES bugs write, votes write, products read, cc read,
+ user_group_map read, bug_group_map read");
# Take note of, and delete the user's old votes from the database.
SendSQL("SELECT bug_id FROM votes WHERE who = $who");