Details
Description
the problem here is we need different control when browsing and when viewing, solution is to use different context when browsing and when viewing profile
file browser will use usercontexidt/user_profile/0/ and userfile.php , this will be returned by file_browser too
and when viewing profile we will use coursecontext/user_profile/userid/ and pluginfile.php
committing patch soon