Commit 6f0e3792 authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 288883: SQL crash when granting/denying a request - Patch by Frederic Buclin…

Bug 288883: SQL crash when granting/denying a request - Patch by Frederic Buclin <LpSolit@gmail.com> r=joel a=justdave
parent b53d8ff1
...@@ -1140,7 +1140,7 @@ sub update ...@@ -1140,7 +1140,7 @@ sub update
# Bugzilla::User needs to rederive groups. profiles and # Bugzilla::User needs to rederive groups. profiles and
# user_group_map would be READ locks instead of WRITE locks if it # user_group_map would be READ locks instead of WRITE locks if it
# weren't for derive_groups, which needs to write to those tables. # weren't for derive_groups, which needs to write to those tables.
'bugs READ', 'profiles WRITE', 'bugs READ', 'profiles WRITE', 'email_setting READ',
'cc READ', 'bug_group_map READ', 'user_group_map WRITE', 'cc READ', 'bug_group_map READ', 'user_group_map WRITE',
'group_group_map READ', 'groups READ'); 'group_group_map READ', 'groups READ');
......
...@@ -1182,7 +1182,7 @@ foreach my $id (@idlist) { ...@@ -1182,7 +1182,7 @@ foreach my $id (@idlist) {
"keyworddefs READ", "groups READ", "attachments READ", "keyworddefs READ", "groups READ", "attachments READ",
"group_control_map AS oldcontrolmap READ", "group_control_map AS oldcontrolmap READ",
"group_control_map AS newcontrolmap READ", "group_control_map AS newcontrolmap READ",
"group_control_map READ"); "group_control_map READ", "email_setting READ");
# Fun hack. @::log_columns only contains the component_id, # Fun hack. @::log_columns only contains the component_id,
# not the name (since bug 43600 got fixed). So, we need to have # not the name (since bug 43600 got fixed). So, we need to have
# this id ready for the loop below, otherwise anybody can # this id ready for the loop below, otherwise anybody can
......
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