Only ask for password when updating admin rules
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
3203e81fea
commit
df54bb901c
|
@ -114,7 +114,9 @@ const store = new Vuex.Store({
|
|||
context.commit('removeRule', rule)
|
||||
},
|
||||
async pushUpdateRule(context, rule) {
|
||||
if (context.state.scope === 0) {
|
||||
await confirmPassword()
|
||||
}
|
||||
let result
|
||||
if (rule.id < 0) {
|
||||
result = await axios.post(getApiUrl(''), rule)
|
||||
|
|
Loading…
Reference in New Issue