aboutsummaryrefslogtreecommitdiff
path: root/files/usr/local/etc/polkit-1/rules.d/51-desktop.rules.desktop
blob: d57c4b9aa6ff73ea3f2863cf2a9bd87647490c90 (plain) (blame)
1
2
3
4
5
6
7
8
polkit.addRule(function (action, subject) {
  if ((action.id == "org.freedesktop.consolekit.system.restart" ||
      action.id == "org.freedesktop.consolekit.system.stop" ||
      action.id == "org.freedesktop.consolekit.system.suspend")
      && subject.isInGroup("${desktop_access_role}")) {
    return polkit.Result.YES;
  }
});