Merge branch 'MDL-27619_23' of git://github.com/pauln/moodle into MOODLE_23_STABLE
authorSam Hemelryk <sam@moodle.com>
Tue, 11 Dec 2012 22:09:32 +0000 (11:09 +1300)
committerSam Hemelryk <sam@moodle.com>
Tue, 11 Dec 2012 22:09:32 +0000 (11:09 +1300)
grade/edit/outcome/edit_form.php

index fe2c682..2cd24c5 100644 (file)
@@ -121,7 +121,7 @@ class edit_outcome_form extends moodleform {
             if (empty($courseid)) {
                 $mform->hardFreeze('standard');
 
-            } else if (empty($outcome->courseid) and !has_capability('moodle/grade:manage', get_context_instance(CONTEXT_SYSTEM))) {
+            } else if (!has_capability('moodle/grade:manage', get_context_instance(CONTEXT_SYSTEM))) {
                 $mform->hardFreeze('standard');
 
             } else if ($coursecount and empty($outcome->courseid)) {