General developer forum

overriding functions in lib/filelib.php

 
Picture of Olumuyiwa Taiwo
Re: overriding functions in lib/filelib.php
Particularly helpful Moodlers

If you're doing that in a plugin, you should implement the function MYPLUGIN_pluginfile(...) in your plugin's lib.php, and control access there. 

See https://docs.moodle.org/dev/File_API#Serving_files_to_users

 
Average of ratings: -