mirror of
git://slackware.nl/current.git
synced 2025-01-11 08:01:05 +01:00
13 lines
438 B
Text
13 lines
438 B
Text
polkit.addRule(
|
|||
function(action, subject) {
|
|||
if ( (action.id == "org.freedesktop.consolekit.system.restart" ||
|
|||
action.id == "org.freedesktop.consolekit.system.restart-multiple-users" ||
|
|||
action.id == "org.freedesktop.consolekit.system.stop" ||
|
|||
action.id == "org.freedesktop.consolekit.system.stop-multiple-users")
|
|||
&& subject.isInGroup("power") ) {
|
|||
return polkit.Result.YES;
|
|||
}
|
|||
}
|
|||
);
|
|||
|