Corretly hide "no permissions" message in controls in viewer mode

Fixes #5622
Merge pull request #5648 from owncloud/files-fixhidecontrolsinviewermode

Corretly hide "no permissions" message in controls in viewer mode