Allow course/mod.php write access.

Allow course/mod.php write access.

by Jean-Nicolas Dufresne -
Number of replies: 0

Good day to all,

I am creating a module that uses directories in moodledata. These directories are created at each new instance of the module. Everything is fine.

However, I get permission denied errors when I decide to delete the instance form a course. Deletion of mod instances is handled by course/mod.php.

Even if I link mod.php with the module's library and I use a lib function, it won't be permited to work.

Does anyone has a suggestion to handle this or to change course/mod.php attributes to allow write access?

Thanks

Average of ratings: -