diff options
author | Joas Schilling <coding@schilljs.com> | 2016-10-25 12:08:52 +0200 |
---|---|---|
committer | Lukas Reschke <lukas@statuscode.ch> | 2016-11-18 12:10:50 +0100 |
commit | 145da710a5cab401a0ac226b4c4141ba4f4ab6d9 (patch) | |
tree | d2c249dd9bd8cba933956e486181ec5025dd2953 /core/js/public | |
parent | 62855c08ffbc7697e43f8aeca42095add8b84986 (diff) | |
download | nextcloud-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.js | 4 |
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(), |