summaryrefslogtreecommitdiffstats
path: root/apps/files_versions
diff options
context:
space:
mode:
authorMichael Gapczynski <mtgap@owncloud.com>2012-07-25 16:33:08 -0400
committerMichael Gapczynski <mtgap@owncloud.com>2012-07-25 16:33:08 -0400
commit4d17ed2f71c8cbb0d34c039aa7953b2427ce5c78 (patch)
tree136a050983c8feaa993805ffff53d5aad86f9cff /apps/files_versions
parent6f58eca5349d8c82f7bba3a7c0f92c0caa8e3749 (diff)
downloadnextcloud-server-4d17ed2f71c8cbb0d34c039aa7953b2427ce5c78.tar.gz
nextcloud-server-4d17ed2f71c8cbb0d34c039aa7953b2427ce5c78.zip
Make file actions permissions aware
Diffstat (limited to 'apps/files_versions')
-rw-r--r--apps/files_versions/js/versions.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_versions/js/versions.js b/apps/files_versions/js/versions.js
index a090fde446e..c5c1553f1a8 100644
--- a/apps/files_versions/js/versions.js
+++ b/apps/files_versions/js/versions.js
@@ -11,7 +11,7 @@ $(document).ready(function() {
$(document).ready(function(){
if (typeof FileActions !== 'undefined') {
// Add history button to files/index.php
- FileActions.register('file','History',function(){return OC.imagePath('core','actions/history')},function(filename){
+ FileActions.register('file','History', FileActions.PERMISSION_UPDATE, function(){return OC.imagePath('core','actions/history')},function(filename){
if (scanFiles.scanning){return;}//workaround to prevent additional http request block scanning feedback