blob: 16dd039562ff513ef6bb3382e88baed2eab4b3a9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
/* -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*- */
/* see test/polkitbackend/test-polkitbackendjsauthority.c */
polkit.addRule(function(action, subject, details) {
if (action == "net.company.order0") {
polkit.log("blabla");
details["test_detail"] = "d";
return "yes";
}
});
polkit.addRule(function(action, subject, details) {
if (action == "net.company.order1") {
details["test_detail"] = "d";
return "yes";
}
});
polkit.addRule(function(action, subject, details) {
if (action == "net.company.order2") {
details["test_detail"] = "d";
return "yes";
}
});
|