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

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

/* NOTE: this is the /usr/share/polkit-1/rules.d version of 10-testing.rules */

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 "yes";
    }
});