diff options
author | bugreport%peshkin.net <> | 2005-10-22 20:07:05 +0000 |
---|---|---|
committer | bugreport%peshkin.net <> | 2005-10-22 20:07:05 +0000 |
commit | d0042bb7c9340ef4dd80b3abe3b2f45ed4bf862b (patch) | |
tree | 5e6ba1c72c6a1ca951034e09789ad600519ab5b5 /process_bug.cgi | |
parent | 6d4505ccf740f740fd4f3ffa438316f0b81a61c0 (diff) | |
download | bugs-d0042bb7c9340ef4dd80b3abe3b2f45ed4bf862b.tar bugs-d0042bb7c9340ef4dd80b3abe3b2f45ed4bf862b.tar.gz bugs-d0042bb7c9340ef4dd80b3abe3b2f45ed4bf862b.tar.bz2 bugs-d0042bb7c9340ef4dd80b3abe3b2f45ed4bf862b.tar.xz bugs-d0042bb7c9340ef4dd80b3abe3b2f45ed4bf862b.zip |
Bug 312787 When strict_isolation is set, do not permit users to alter deps on bugs unless they can edit both bugs
Patch by Joel Peshkin <bugreport@peshkin.net>
r=kiko, a=justdave
Diffstat (limited to 'process_bug.cgi')
-rwxr-xr-x | process_bug.cgi | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/process_bug.cgi b/process_bug.cgi index adb6a3ded..dc119179c 100755 --- a/process_bug.cgi +++ b/process_bug.cgi @@ -165,6 +165,13 @@ foreach my $field ("dependson", "blocked") { $vars->{'field'} = $field; ThrowUserError("illegal_change", $vars); } + if (Param("strict_isolation")) { + my $deltabug = new Bugzilla::Bug($id, $user); + if (!$user->can_edit_product($deltabug->{'product_id'})) { + $vars->{'field'} = $field; + ThrowUserError("illegal_change_deps", $vars); + } + } } } else { # Bugzilla does not support mass-change of dependencies so they |