summaryrefslogtreecommitdiffstats
path: root/core/js/shareconfigmodel.js
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2017-04-10 18:36:23 +0200
committerBjoern Schiessle <bjoern@schiessle.org>2017-04-20 16:33:26 +0200
commitd8dcd72118f7f5f83874e3a54a7fbc02bda10ce6 (patch)
tree7da5dbe03601c1c52398b4a32460e5aad0dadf11 /core/js/shareconfigmodel.js
parent140580f9d8468b8450f31dca997916a07693277f (diff)
downloadnextcloud-server-d8dcd72118f7f5f83874e3a54a7fbc02bda10ce6.tar.gz
nextcloud-server-d8dcd72118f7f5f83874e3a54a7fbc02bda10ce6.zip
allow admin to enforce password on mail shares
Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'core/js/shareconfigmodel.js')
-rw-r--r--core/js/shareconfigmodel.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/js/shareconfigmodel.js b/core/js/shareconfigmodel.js
index 1ead631db4d..16ab904ad43 100644
--- a/core/js/shareconfigmodel.js
+++ b/core/js/shareconfigmodel.js
@@ -29,6 +29,7 @@
isMailShareAllowed: oc_appconfig.shareByMailEnabled !== undefined,
defaultExpireDate: oc_appconfig.core.defaultExpireDate,
isResharingAllowed: oc_appconfig.core.resharingAllowed,
+ isPasswordForMailSharesRequired: (oc_appconfig.shareByMail === undefined) ? false : oc_appconfig.shareByMail.enforcePasswordProtection,
allowGroupSharing: oc_appconfig.core.allowGroupSharing
},