]> source.dussan.org Git - nextcloud-server.git/commitdiff
Only ask for password when updating admin rules
authorJulius Härtl <jus@bitgrid.net>
Mon, 30 Dec 2019 12:25:59 +0000 (13:25 +0100)
committerJulius Härtl <jus@bitgrid.net>
Thu, 2 Jan 2020 10:07:37 +0000 (11:07 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/workflowengine/src/store.js

index 7cb1956b6ffa28609c3407e71aec72ab82499812..c02aa99f63ad4b815b4cf21fbeb52566c835b7ae 100644 (file)
@@ -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)