Require confirmation for app config changes
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
62855c08ff
commit
145da710a5
|
@ -33,6 +33,10 @@ OCP.AppConfig = {
|
||||||
* @internal
|
* @internal
|
||||||
*/
|
*/
|
||||||
_call: function(method, endpoint, options) {
|
_call: function(method, endpoint, options) {
|
||||||
|
if ((method === 'post' || method === 'delete') && OC.PasswordConfirmation.requiresPasswordConfirmation()) {
|
||||||
|
OC.PasswordConfirmation.requirePasswordConfirmation(_.bind(this._call, this, arguments));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: method.toUpperCase(),
|
type: method.toUpperCase(),
|
||||||
|
|
Loading…
Reference in New Issue