Save the permissions in the filecache if it's not saved yet

This also fixes the upload/new buttons not showing up.

cc @DeepDiver1975 @schiesbn 
Use "correct" instead of "right"?