summaryrefslogtreecommitdiffstats
path: root/core/js/sharedialoglinkshareview.js
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-13 21:29:40 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2019-05-13 21:30:01 +0200
commit6b46d9f2e5069f3d3ad8ff0da9df752bf3c3ef3f (patch)
treea39bc78348aac2f07e34d1259ec33ce3967f44a3 /core/js/sharedialoglinkshareview.js
parent5ee6872c8ab688451b2489d35a9a19bbce457e98 (diff)
downloadnextcloud-server-6b46d9f2e5069f3d3ad8ff0da9df752bf3c3ef3f.tar.gz
nextcloud-server-6b46d9f2e5069f3d3ad8ff0da9df752bf3c3ef3f.zip
Move OC.getCapabilities to the bundle and deprecate OC._capabilities, oc_capabilities
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'core/js/sharedialoglinkshareview.js')
-rw-r--r--core/js/sharedialoglinkshareview.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/js/sharedialoglinkshareview.js b/core/js/sharedialoglinkshareview.js
index 246b0e45e7b..141f2fa4015 100644
--- a/core/js/sharedialoglinkshareview.js
+++ b/core/js/sharedialoglinkshareview.js
@@ -598,8 +598,8 @@
var minPasswordLength = 4
// password policy?
- if(oc_capabilities.password_policy && oc_capabilities.password_policy.minLength) {
- minPasswordLength = oc_capabilities.password_policy.minLength;
+ if(OC.getCapabilities().password_policy && OC.getCapabilities().password_policy.minLength) {
+ minPasswordLength = OC.getCapabilities().password_policy.minLength;
}
var popoverBase = {