summaryrefslogtreecommitdiff
path: root/libre/xbmc-libre/polkit.rules
blob: 5bc7e69f5d890a09a5708940f2164619f34dfcf8 (plain)
1
2
3
4
5
6
7
8
9
10
11
polkit.addRule(function(action, subject) {
  if (action.id.match("org.freedesktop.login1.") && subject.isInGroup("power")) {
    return polkit.Result.YES;
  }
});

polkit.addRule(function(action, subject) {
  if (action.id.indexOf("org.freedesktop.udisks") == 0 && subject.isInGroup("storage")) {
    return polkit.Result.YES;
  }
});