summarylogtreecommitdiffstats
path: root/00-sxmo.rules
blob: 8d3bbe2b7186d4130537417cc12e3ddb991d3f52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
polkit.addRule(function(action, subject) {
  if (action.id.indexOf("org.freedesktop.ModemManager1.") == 0 &&
      subject.isInGroup("network")) {

      return polkit.Result.YES;
  }
});

polkit.addRule(function(action, subject) {
    if (action.id.indexOf("org.freedesktop.NetworkManager.") == 0 &&
       subject.isInGroup("network")) {

        return polkit.Result.YES;
    }
});