diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2012-08-31 01:41:29 +0400 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2012-08-31 01:41:29 +0400 |
commit | 9c81cde100e0d98271df5031836c13b14d2be912 (patch) | |
tree | 2a7e5a872e2eb10930e8f641a5434b3546c922ea /files_videoviewer | |
parent | eed5b418ba30a1ed42c06324b76539ae90c4ba47 (diff) |
Add read permission while registering the app
Diffstat (limited to 'files_videoviewer')
-rw-r--r-- | files_videoviewer/js/viewer.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files_videoviewer/js/viewer.js b/files_videoviewer/js/viewer.js index b952841f3..2b68041f6 100644 --- a/files_videoviewer/js/viewer.js +++ b/files_videoviewer/js/viewer.js @@ -85,7 +85,7 @@ $(document).ready(function() { if (typeof FileActions !== 'undefined') { for (var i = 0; i < streamerPlayer.mimeTypes.length; ++i) { var mime = streamerPlayer.mimeTypes[i]; - FileActions.register(mime, 'View', '', streamerPlayer.onView); + FileActions.register(mime, 'View', FileActions.PERMISSION_READ, '', streamerPlayer.onView); FileActions.setDefault(mime, 'View'); } $(document).keydown(streamerPlayer.onKeyDown); |