pkgsrc/sysutils/consolekit/files/50-shutdown.rules
2018-06-01 21:51:56 +00:00

9 lines
363 B
Text

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" ||
action.id == "org.freedesktop.consolekit.system.hibernate")
&& subject.isInGroup("operator")) {
return polkit.Result.YES;
}
});