owncloud/core — pull request #5473 by PVince81 (2013-10-22 14:45:53+00:00)
Title: Added FileList.setViewerMode to hide controls

Some files app embed themselves under the controls (like the text
editor). The new method FileList.setViewerMode() makes it possible to
properly show/hide the control buttons using the correct permissions.

Apps using this approach must call setViewerMode(true) when starting and
setViewerMode(false) upon closing to restore the controls.

This is needed for #5284

Please review @karlitschek @schiesbn @jancborchardt @Kondou-ger