diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-26 00:33:08 +0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-26 00:33:08 +0400 |
commit | b1a520cd7fb68f21d562586433ebad2518f0eb7d (patch) | |
tree | a367e63edb7011ebf49c37ef1cfb755cf9a1afae /files_archive | |
parent | ed698741e530f77bf7622c311e0088dd31765f84 (diff) |
Make file actions permissions aware
Diffstat (limited to 'files_archive')
-rw-r--r-- | files_archive/js/archive.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/files_archive/js/archive.js b/files_archive/js/archive.js index 9fb9853e2..6bcbe0926 100644 --- a/files_archive/js/archive.js +++ b/files_archive/js/archive.js @@ -7,11 +7,11 @@ $(document).ready(function() { if(typeof FileActions!=='undefined'){ - FileActions.register('application/zip','Open','',function(filename){ + FileActions.register('application/zip','Open', FileActions.PERMISSION_READ, '',function(filename){ window.location=OC.linkTo('files', 'index.php')+'&dir='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename); }); FileActions.setDefault('application/zip','Open'); - FileActions.register('application/x-gzip','Open','',function(filename){ + FileActions.register('application/x-gzip','Open', FileActions.PERMISSION_READ, '',function(filename){ window.location=OC.linkTo('files', 'index.php')+'&dir='+encodeURIComponent($('#dir').val()).replace(/%2F/g, '/')+'/'+encodeURIComponent(filename); }); FileActions.setDefault('application/x-gzip','Open'); |