fix for MDL-8666, groups import broken

This commit is contained in:
moodler
2007-02-27 05:42:01 +00:00
parent 8b03cdac79
commit 997a36bb09
+1 -1
View File
@@ -164,7 +164,7 @@
$newgrpcoursecontext = get_context_instance(CONTEXT_COURSE, $newgroup->courseid);
///Users cannot upload groups in courses they cannot update.
if (has_capability('moodle/course:update', $newgrpcoursecontext)){
if (!has_capability('moodle/course:update', $newgrpcoursecontext)){
notify("$newgroup->name ".get_string('notaddedto').$newgroup->coursename.get_string('notinyourcapacity'));
}