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