Lines 3-10
Link Here
|
3 |
like this (replace PUTYOURGROUPHERE by your group): |
3 |
like this (replace PUTYOURGROUPHERE by your group): |
4 |
|
4 |
|
5 |
polkit.addRule(function (action, subject) { |
5 |
polkit.addRule(function (action, subject) { |
6 |
if (action.id == "org.freedesktop.consolekit.system.restart" || |
6 |
if ((action.id == "org.freedesktop.consolekit.system.restart" || |
7 |
action.id == "org.freedesktop.consolekit.system.stop" |
7 |
action.id == "org.freedesktop.consolekit.system.stop") |
8 |
&& subject.isInGroup("PUTYOURGROUPHERE")) { |
8 |
&& subject.isInGroup("PUTYOURGROUPHERE")) { |
9 |
return polkit.Result.YES; |
9 |
return polkit.Result.YES; |
10 |
} |
10 |
} |