MDL-7716 In visible groups mode, It is possible to put a database entries in other group that it his
This commit is contained in:
+5
-1
@@ -180,7 +180,11 @@
|
||||
redirect($CFG->wwwroot.'/mod/data/view.php?d='.$data->id.'&rid='.$rid);
|
||||
|
||||
} else { /// Add some new records
|
||||
|
||||
|
||||
if (!data_user_can_add_entry($data, $currentgroup, $groupmode)) {
|
||||
error('Can not add entries!');
|
||||
}
|
||||
|
||||
/// Check if maximum number of entry as specified by this database is reached
|
||||
/// Of course, you can't be stopped if you are an editting teacher! =)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user