polkit.addRule (function (action, subject) { if (action.id == "org.freedesktop.consolekit.system.stop" || action.id == "org.freedesktop.consolekit.system.stop-multiple-users" && subject.isInGroup ("users")) { return polkit.Result.YES; } });