aboutsummaryrefslogtreecommitdiffstats
path: root/org.mageia.qarepo-helper.rules
diff options
context:
space:
mode:
Diffstat (limited to 'org.mageia.qarepo-helper.rules')
-rw-r--r--org.mageia.qarepo-helper.rules9
1 files changed, 9 insertions, 0 deletions
diff --git a/org.mageia.qarepo-helper.rules b/org.mageia.qarepo-helper.rules
new file mode 100644
index 0000000..6a9e964
--- /dev/null
+++ b/org.mageia.qarepo-helper.rules
@@ -0,0 +1,9 @@
+polkit.addRule(function(action, subject) {
+ 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;
+ }
+ }
+});