13 lines
409 B
Plaintext
13 lines
409 B
Plaintext
polkit.addRule(
|
|
function(action, subject) {
|
|
if ( (action.id == "org.freedesktop.login1.reboot" ||
|
|
action.id == "org.freedesktop.login1.reboot-multiple-sessions" ||
|
|
action.id == "org.freedesktop.login1.power-off" ||
|
|
action.id == "org.freedesktop.login1.power-off-multiple-sessions")
|
|
&& subject.isInGroup("power") ) {
|
|
return polkit.Result.YES;
|
|
}
|
|
}
|
|
);
|
|
|