From c1592abdd07d7db513646c3bf75d1808cad0d638 Mon Sep 17 00:00:00 2001 From: Martin Whitaker Date: Wed, 14 Nov 2018 00:33:12 +0000 Subject: Fix bug in polkit rules. --- org.mageia.qarepo-helper.rules | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/org.mageia.qarepo-helper.rules b/org.mageia.qarepo-helper.rules index 8408234..6a9e964 100644 --- a/org.mageia.qarepo-helper.rules +++ b/org.mageia.qarepo-helper.rules @@ -1,10 +1,9 @@ polkit.addRule(function(action, subject) { - if (action.id == "org.mageia.qarepo-helper.pkexec.run" && - subject.local && subject.active && - subject.isInGroup("qarepo")) { - return polkit.Result.YES; - } else { - return polkit.Result.AUTH_ADMIN_KEEP; + if (action.id == "org.mageia.qarepo-helper.pkexec.run") { + if (subject.local && subject.active && subject.isInGroup("qarepo")) { + return polkit.Result.YES; + } else { + return polkit.Result.AUTH_ADMIN_KEEP; + } } }); - -- cgit v1.2.1