summaryrefslogtreecommitdiff
path: root/test/data/usr/share/polkit-1/rules.d/20-testing.rules
blob: 5c5bb2c8af011e1bfe2e0f75a770e9229975c5d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
/* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */

/* see test/polkitbackend/test-polkitbackendjsauthority.c */

polkit.addRule(function(action, subject) {
    if (action.id == "net.company.order0") {
        return "no"; // earlier rule should win
    }
});

polkit.addRule(function(action, subject) {
    if (action.id == "net.company.order1") {
        return "no"; // earlier rule should win
    }
});

polkit.addRule(function(action, subject) {
    if (action.id == "net.company.order2") {
        return "no"; // earlier rule should win
    }
});