c57abbbf36
shutdown or reboot.
9 lines
363 B
Text
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;
|
|
}
|
|
});
|