Mobile App Restrictions Result in Corrupt Files

Re: Mobile App Restrictions Result in Corrupt Files

by Juan Leyva -
Number of replies: 0
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers
Hi Cory,

I think Dani has found the line of code causing the issue, this line in availability/condition/mobile/classes/condition.php

if (strpos($ME, "webservice/") !== false) {

should be replaced with

if (strpos($ME, "webservice/") !== false || strpos($ME, "tokenpluginfile.php") !== false) {

That should fix the issue, I will try to provide a new version of the plugin during next week, in the meantime, you can manually apply the patch

Regards, Juan