diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-25 16:33:08 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-25 16:33:08 -0400 |
commit | 4d17ed2f71c8cbb0d34c039aa7953b2427ce5c78 (patch) | |
tree | 136a050983c8feaa993805ffff53d5aad86f9cff /apps/contacts | |
parent | 6f58eca5349d8c82f7bba3a7c0f92c0caa8e3749 (diff) | |
download | nextcloud-server-4d17ed2f71c8cbb0d34c039aa7953b2427ce5c78.tar.gz nextcloud-server-4d17ed2f71c8cbb0d34c039aa7953b2427ce5c78.zip |
Make file actions permissions aware
Diffstat (limited to 'apps/contacts')
-rw-r--r-- | apps/contacts/js/loader.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/contacts/js/loader.js b/apps/contacts/js/loader.js index 577ad103064..3b1f4070485 100644 --- a/apps/contacts/js/loader.js +++ b/apps/contacts/js/loader.js @@ -78,9 +78,9 @@ Contacts_Import={ }
$(document).ready(function(){
if(typeof FileActions !== 'undefined'){
- FileActions.register('text/vcard','importaddressbook', '', Contacts_Import.importdialog);
+ FileActions.register('text/vcard','importaddressbook', FileActions.PERMISSION_READ, '', Contacts_Import.importdialog);
FileActions.setDefault('text/vcard','importaddressbook');
- FileActions.register('text/x-vcard','importaddressbook', '', Contacts_Import.importdialog);
+ FileActions.register('text/x-vcard','importaddressbook', FileActions.PERMISSION_READ, '', Contacts_Import.importdialog);
FileActions.setDefault('text/x-vcard','importaddressbook');
};
});
\ No newline at end of file |