Save mod_assign_save_submission usign HTML form

Re: Save mod_assign_save_submission usign HTML form

by David Monllaó -
Number of replies: 1

Hi Manex,

mod_assign_save_submission is a web service function, so it is supposed to be called from an external client, if your form is external to moodle then yes, you should use that function, I'm guessing that the mod_assign function, internally, is using $USER, which is the admin when you calling the web service function using the admin user token, you should call it using the student token.