aboutsummaryrefslogtreecommitdiffstats
path: root/org.mageia.qarepo-helper.rules
blob: 6a9e964738d88f33f30a86782d53a666b30d65a1 (plain)
1
2
3
4
5
6
7
8
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;
        }
    }
});