polkit.addRule(function(action, subject) { if (action.id == "org.blueman.rfkill.setstate" && subject.local && subject.active && subject.isInGroup("wheel")) { return polkit.Result.YES; } if (action.id == "org.blueman.network.setup" && subject.local && subject.active && subject.isInGroup("wheel")) { return polkit.Result.YES; } });