Fixes bug when uploading files to profile with restricted access
Fixes a bug where it was not possible to upload files (including via the media panel) when the profile had a restricted access (anything more restricted than public).
Fixes a bug where it was not possible to upload files (including via the media panel) when the profile had a restricted access (anything more restricted than public).