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:
skodak
2006-12-10 20:16:03 +00:00
parent 411f589fa7
commit cca1547e7c
5 changed files with 52 additions and 2 deletions
+5 -1
View File
@@ -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! =)