Opencast-Moodle / moodle-local_chunkupload

Plugin to upload big files to Moodle
6 stars 6 forks source link

incorrect way to check if user is logged in as guest #12

Closed danmarsden closed 4 years ago

danmarsden commented 4 years ago

https://github.com/learnweb/moodle-local_chunkupload/blob/master/classes/chunkupload_form_element.php#L240

better to use the core api "isguestuser()"

and... that also makes me think that your require_login_in_context_ajax should be forcing login even when $cfg->forcelogin is not set. (Issue #10)

justusdieckmann commented 4 years ago

Fixed by #15, thanks :)