Fri Jun 1 21:51:56 2018 UTC ()
Fix boolean logic error, now non-operator users shouldn't be able to
shutdown or reboot.


(youri)
diff -r1.1 -r1.2 pkgsrc/sysutils/consolekit/files/50-shutdown.rules

cvs diff -r1.1 -r1.2 pkgsrc/sysutils/consolekit/files/50-shutdown.rules (expand / switch to unified diff)

--- pkgsrc/sysutils/consolekit/files/50-shutdown.rules 2016/06/18 10:23:16 1.1
+++ pkgsrc/sysutils/consolekit/files/50-shutdown.rules 2018/06/01 21:51:56 1.2
@@ -1,9 +1,9 @@ @@ -1,9 +1,9 @@
1polkit.addRule(function (action, subject) { 1polkit.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});