mirror of
git://slackware.nl/current.git
synced 2024-12-28 09:59:53 +01:00
10 lines
253 B
Text
10 lines
253 B
Text
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;
|
|||
}
|
|||
}
|
|||
);
|