summaryrefslogtreecommitdiff
path: root/source/a/upower/10-enable-upower-suspend.rules
blob: 4bccfb01439c8695de9aa0630ac5cd1d7794921d (plain)
1
2
3
4
5
6
7
8
9
polkit.addRule(
  function(action, subject) {
    if ( (action.id == "org.freedesktop.upower.suspend" ||
          action.id == "org.freedesktop.upower.hibernate")
          && subject.isInGroup("power") ) {
      return polkit.Result.YES;
    }
  }
);