summaryrefslogtreecommitdiffstats
path: root/core/js/shareitemmodel.js
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-03-29 11:58:04 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2017-04-03 10:29:32 +0200
commit3cc0d15f92175f01744cef0840e32d9b5657db3b (patch)
tree990eb3f1ee4a0a82a168d35cb4a7e33cecc4d3a9 /core/js/shareitemmodel.js
parentc191173d5914f77ebac425e315d2b962077bd654 (diff)
downloadnextcloud-server-3cc0d15f92175f01744cef0840e32d9b5657db3b.tar.gz
nextcloud-server-3cc0d15f92175f01744cef0840e32d9b5657db3b.zip
add secure drop functionallity to mail shares
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'core/js/shareitemmodel.js')
-rw-r--r--core/js/shareitemmodel.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/shareitemmodel.js b/core/js/shareitemmodel.js
index 87d0556b996..8b0f71568c9 100644
--- a/core/js/shareitemmodel.js
+++ b/core/js/shareitemmodel.js
@@ -509,6 +509,10 @@
return this._shareHasPermission(shareIndex, OC.PERMISSION_DELETE);
},
+ hasReadPermission: function(shareIndex) {
+ return this._shareHasPermission(shareIndex, OC.PERMISSION_READ);
+ },
+
/**
* @returns {boolean}
*/