fix bug in handling edit rights is view files
fix bug in handling edit rights is view files (docs)