From df54bb901c6adc9ed2dcaf9e64e5f1a0c857676f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julius=20H=C3=A4rtl?= Date: Mon, 30 Dec 2019 13:25:59 +0100 Subject: [PATCH] Only ask for password when updating admin rules MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Julius Härtl --- apps/workflowengine/src/store.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apps/workflowengine/src/store.js b/apps/workflowengine/src/store.js index 7cb1956b6f..c02aa99f63 100644 --- a/apps/workflowengine/src/store.js +++ b/apps/workflowengine/src/store.js @@ -114,7 +114,9 @@ const store = new Vuex.Store({ context.commit('removeRule', rule) }, async pushUpdateRule(context, rule) { - await confirmPassword() + if (context.state.scope === 0) { + await confirmPassword() + } let result if (rule.id < 0) { result = await axios.post(getApiUrl(''), rule)