summaryrefslogtreecommitdiffstats
path: root/whine.pl
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-07-08 03:33:45 +0200
committerlpsolit%gmail.com <>2005-07-08 03:33:45 +0200
commitf20886b99e4b9c77baec231dc9a5fbdfe9faef59 (patch)
treefc28f529657e6160f59e634db50292f54422a5f4 /whine.pl
parent7459578f65927f1bd2b44b7a1884ee85cf174be5 (diff)
downloadbugzilla-f20886b99e4b9c77baec231dc9a5fbdfe9faef59.tar.gz
bugzilla-f20886b99e4b9c77baec231dc9a5fbdfe9faef59.tar.xz
Bug 299211: whine.pl fails if derive_groups is required - Patch by Marc Schumann <wurblzap@gmail.com> r=LpSolit a=justdave
Diffstat (limited to 'whine.pl')
-rwxr-xr-xwhine.pl8
1 files changed, 5 insertions, 3 deletions
diff --git a/whine.pl b/whine.pl
index 8be68f42c..259195720 100755
--- a/whine.pl
+++ b/whine.pl
@@ -228,9 +228,10 @@ sub get_next_event {
$dbh->bz_lock_tables('whine_schedules WRITE',
'whine_events READ',
- 'profiles READ',
+ 'profiles WRITE',
'groups READ',
- 'user_group_map READ');
+ 'group_group_map READ',
+ 'user_group_map WRITE');
# Get the event ID for the first pending schedule
$sth_next_scheduled_event->execute;
@@ -239,7 +240,8 @@ sub get_next_event {
return undef unless $fetched;
my ($eventid, $owner_id, $subject, $body) = @{$fetched};
- my $owner = Bugzilla::User->new($owner_id);
+ my $owner = Bugzilla::User->new($owner_id,
+ DERIVE_GROUPS_TABLES_ALREADY_LOCKED);
my $whineatothers = $owner->in_group('bz_canusewhineatothers');