diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-08-31 03:05:44 +0400 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2012-08-31 03:12:02 +0400 |
commit | ac87b6e570f4dd31c50873f65a177e67b65b833c (patch) | |
tree | a1d655e5ff96bfbed12b0ff7e3d2675364173775 /files_archive | |
parent | 9f0f522a282e3deeb79b0fc441bc91fda5eb1efe (diff) |
unify permissions (2/3): change apps to use OC::PERMISSION_X
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 6bcbe0926..b62d16f3f 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', FileActions.PERMISSION_READ, '',function(filename){ + FileActions.register('application/zip','Open', OC.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', FileActions.PERMISSION_READ, '',function(filename){ + FileActions.register('application/x-gzip','Open', OC.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'); |