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
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
1 changed files with
3 additions and
1 deletions
-
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) |
|
|
|
|