summaryrefslogtreecommitdiffstats
path: root/core/js/public
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-10-25 12:08:52 +0200
committerLukas Reschke <lukas@statuscode.ch>2016-11-18 12:10:50 +0100
commit145da710a5cab401a0ac226b4c4141ba4f4ab6d9 (patch)
treed2c249dd9bd8cba933956e486181ec5025dd2953 /core/js/public
parent62855c08ffbc7697e43f8aeca42095add8b84986 (diff)
downloadnextcloud-server-145da710a5cab401a0ac226b4c4141ba4f4ab6d9.tar.gz
nextcloud-server-145da710a5cab401a0ac226b4c4141ba4f4ab6d9.zip
Require confirmation for app config changes
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'core/js/public')
-rw-r--r--core/js/public/appconfig.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/public/appconfig.js b/core/js/public/appconfig.js
index de04f334ca8..5021f78e2d6 100644
--- a/core/js/public/appconfig.js
+++ b/core/js/public/appconfig.js
@@ -33,6 +33,10 @@ OCP.AppConfig = {
* @internal
*/
_call: function(method, endpoint, options) {
+ if ((method === 'post' || method === 'delete') && OC.PasswordConfirmation.requiresPasswordConfirmation()) {
+ OC.PasswordConfirmation.requirePasswordConfirmation(_.bind(this._call, this, arguments));
+ return;
+ }
$.ajax({
type: method.toUpperCase(),