]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 355841: Bug::check_can_change_field() incorrectly updates $PrivilegesRequired...
authorlpsolit%gmail.com <>
Sun, 8 Oct 2006 00:54:57 +0000 (00:54 +0000)
committerlpsolit%gmail.com <>
Sun, 8 Oct 2006 00:54:57 +0000 (00:54 +0000)
Bugzilla/Bug.pm

index 825ec414926bd84209dd8aaa4e1713abbd46e9e3..be4b2a0372042ac91a4a0ace7b03ca146d9de755 100755 (executable)
@@ -1825,7 +1825,7 @@ sub check_can_change_field {
             && $oldvalue eq 'UNCONFIRMED'
             && is_open_state($newvalue)))
     {
-        $PrivilegesRequired = 3;
+        $$PrivilegesRequired = 3;
         return $user->in_group('canconfirm');
     }
 
@@ -1854,24 +1854,24 @@ sub check_can_change_field {
     #   in that case we will have already returned 1 above
     #   when checking for the assignee of the bug.
     if ($field eq 'assigned_to') {
-        $PrivilegesRequired = 2;
+        $$PrivilegesRequired = 2;
         return 0;
     }
     # - change the QA contact
     if ($field eq 'qa_contact') {
-        $PrivilegesRequired = 2;
+        $$PrivilegesRequired = 2;
         return 0;
     }
     # - change the target milestone
     if ($field eq 'target_milestone') {
-        $PrivilegesRequired = 2;
+        $$PrivilegesRequired = 2;
         return 0;
     }
     # - change the priority (unless he could have set it originally)
     if ($field eq 'priority'
         && !Bugzilla->params->{'letsubmitterchoosepriority'})
     {
-        $PrivilegesRequired = 2;
+        $$PrivilegesRequired = 2;
         return 0;
     }
 
@@ -1882,7 +1882,7 @@ sub check_can_change_field {
 
     # If we haven't returned by this point, then the user doesn't
     # have the necessary permissions to change this field.
-    $PrivilegesRequired = 1;
+    $$PrivilegesRequired = 1;
     return 0;
 }