Open mudrd8mz opened 6 years ago
I've modified the app.inc.php script to use moodle_url()
for constructing paths.
This script also now requires a user to login for it to be accessible.
I will upload a new version of the plugin to the repository.
Thanks.
The script
service/app.inc.php
provides the URLs in the controller capabilities ($paths
) as relative paths. If the Moodle is installed in a subdirectory of the web server (such ashttps://our.school.org/moodle/
) then it does not work in the filepicker.Also, this file should either perform the
MOODLE_INTERNAL
check (assuming it is supposed to be required from other script). At the moment, it provides full access via direct URL without performing authentication and authorization checks (so even anonymous users withoutrepository/res:view
can call it).