aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--org.mageia.qarepo-helper.rules13
1 files 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;
+ }
}
});
-