MDL-59239 mod_workshop: Move submission event trigger
authorJuan Leyva <juanleyvadelgado@gmail.com>
Fri, 8 Sep 2017 10:15:45 +0000 (12:15 +0200)
committerEloy Lafuente (stronk7) <stronk7@moodle.org>
Tue, 3 Oct 2017 17:26:40 +0000 (19:26 +0200)
commit27fa2482365d977fd6e592754b5c70149e35e84a
tree309920555cc128a3733d2b3486aa1138061d8009
parentb99070b9d89cc3bc000e32b08af65037793e7740
MDL-59239 mod_workshop: Move submission event trigger

The submission viewed event was being triggered at the beginning of the
script (before doing all the validation/safety checks).
I’ve moved the triggering to a better place so the event it is only
triggered when is verified that the user has permissions to view
the submission.
mod/workshop/submission.php