Browse Source

Only ask for password when updating admin rules

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/18612/head
Julius Härtl 6 years ago
parent
commit
df54bb901c
No known key found for this signature in database GPG Key ID: 4C614C6ED2CDE6DF
  1. 4
      apps/workflowengine/src/store.js

4
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)

Loading…
Cancel
Save