Skip to content

Commit

Permalink
We now mark records as approved if the data activity is set to not re…
Browse files Browse the repository at this point in the history
…quire

approval of new records.
  • Loading branch information
vyshane committed Mar 27, 2006
1 parent ec21b13 commit cb3689b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions mod/data/add.php
Expand Up @@ -120,12 +120,13 @@

/// All student edits are marked unapproved by default
$record = get_record('data_records','id',$rid);
if (isteacher($course->id)) {

if ($data->approval == 1 || isteacher($course->id)) {
$record->approved = 1;
} else {
$record->approved = 0;
}

$record->groupid = $currentgroup;
$record->timemodified = time();
update_record('data_records',$record);
Expand Down

0 comments on commit cb3689b

Please sign in to comment.