Problem with Atto editor Record audio and Record video

Re: Problem with Atto editor Record audio and Record video

by Justin Hunt -
Number of replies: 1
Picture of Particularly helpful Moodlers Picture of Plugin developers
I think Al that the permissions check for the context is handled by you in: function mootyper_pluginfile() in mod/mootyper/lib.php
So its up to you to allow or deny. You are probably denying it unwittingly. Play around with it there.

As to the etiquette of which context you should save it as, I think its the module context. Because its really a part of the lesson.  You just choose to not restrict access to the file based on the users role in the course.
Tim or someone can give you a more definitive answer.
In reply to Justin Hunt

Re: Problem with Atto editor Record audio and Record video

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers
If you are in an activity, the context is context_module for that activity. This is not something that you can choose. You have to use that in your code.

Section 13.2 here might help? https://www.aosabook.org/en/moodle.html

I repeat my advice above: Work out why and how it is working in mod_page, then compare your code to that.