summaryrefslogtreecommitdiffstats
path: root/core/js/shareitemmodel.js
diff options
context:
space:
mode:
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}
*/