Fixed file action permission

The documents editor should only open if the file is updateable.