We at ULPGC are migrating our moodle 1.9 sites to Moodle 2 (2.3 if not delayed). I have realized that new file management introduces a problem for bookeeping in Assignment/Assing.
We use a lot of assignments with resubmission option (if interested, I've creted a plugin for new Assig to allow that): after submitting and being graded the students can re-submit again to improve grades (while the assignment due date is not met).
The system worked great in 1.9 but the teachers testing it in 2.3 find that after grading the student find his/her assignment filearea open: he can submit a new fuile but he can also DELETE the previous one.
This is a problem if you are interested in keeping a record of progression and grades along re-submissions. If the student can delete the files submitted previously then ther will be grades without a clear basis (not tecnically, at DB level, but administratively), this open a lot of corners if there are conflicts about grades.
Thus, ¿is it possible to lock a file to prevent it to be deleted by the user, the owner? Files coukld be deleted by admins.
I do not know deeply the File API, but I wonder if the file.status filed coud be used in this context. For instance, that file delete methods would check file.status and NOT detele (or even not offer the "delete" button) a fiel if file.status is set approppiately.
If there is not a mechanism to lock sumitted files in this moment, I will fill a bug/feature request at Moodle Tracker.