[files-repository] Fix in resolving widget mode basing on user privileges
[files-repository] Slight correction in upload button presence