Require confirmation for app config changes
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
62855c08ff
commit
145da710a5
1 changed files with 4 additions and 0 deletions
|
@ -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(),
|
||||
|
|
Loading…
Reference in a new issue