summaryrefslogtreecommitdiffstats
path: root/apps/workflowengine
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-12-30 13:25:59 +0100
committerJulius Härtl <jus@bitgrid.net>2020-01-02 11:07:37 +0100
commitdf54bb901c6adc9ed2dcaf9e64e5f1a0c857676f (patch)
tree5f8aa2b5643f197639470d8003786c547ab2d2da /apps/workflowengine
parent3203e81fea5d7440bc4799dd0bcba9902e5320d5 (diff)
downloadnextcloud-server-df54bb901c6adc9ed2dcaf9e64e5f1a0c857676f.tar.gz
nextcloud-server-df54bb901c6adc9ed2dcaf9e64e5f1a0c857676f.zip
Only ask for password when updating admin rules
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/workflowengine')
-rw-r--r--apps/workflowengine/src/store.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/apps/workflowengine/src/store.js b/apps/workflowengine/src/store.js
index 7cb1956b6ff..c02aa99f63a 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)