Fix missing friendship permission on files