aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/src/models
diff options
context:
space:
mode:
Diffstat (limited to 'apps/files_sharing/src/models')
-rw-r--r--apps/files_sharing/src/models/Share.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/apps/files_sharing/src/models/Share.js b/apps/files_sharing/src/models/Share.js
index 085eab056df..7a4b96261c0 100644
--- a/apps/files_sharing/src/models/Share.js
+++ b/apps/files_sharing/src/models/Share.js
@@ -450,6 +450,18 @@ export default class Share {
}
// PERMISSIONS Shortcuts
+
+ /**
+ * Does this share have READ permissions
+ *
+ * @returns {boolean}
+ * @readonly
+ * @memberof Share
+ */
+ get hasReadPermission() {
+ return !!((this.permissions & OC.PERMISSION_READ))
+ }
+
/**
* Does this share have CREATE permissions
*