| @@ -1,9 +1,9 @@ | | | @@ -1,9 +1,9 @@ |
1 | polkit.addRule(function (action, subject) { | | 1 | polkit.addRule(function (action, subject) { |
2 | if (action.id == "org.freedesktop.consolekit.system.restart" || | | 2 | if ((action.id == "org.freedesktop.consolekit.system.restart" || |
3 | action.id == "org.freedesktop.consolekit.system.stop" || | | 3 | action.id == "org.freedesktop.consolekit.system.stop" || |
4 | action.id == "org.freedesktop.consolekit.system.suspend" || | | 4 | action.id == "org.freedesktop.consolekit.system.suspend" || |
5 | action.id == "org.freedesktop.consolekit.system.hibernate" | | 5 | action.id == "org.freedesktop.consolekit.system.hibernate") |
6 | && subject.isInGroup("operator")) { | | 6 | && subject.isInGroup("operator")) { |
7 | return polkit.Result.YES; | | 7 | return polkit.Result.YES; |
8 | } | | 8 | } |
9 | }); | | 9 | }); |