1 /* Allow users in sudo group to use blueman feature requiring root without authentication */
2 polkit.addRule(function(action, subject) {
3 if ((action.id == "org.blueman.network.setup" ||
4 action.id == "org.blueman.dhcp.client" ||
5 action.id == "org.blueman.rfkill.setstate" ||
6 action.id == "org.blueman.pppd.pppconnect") &&
7 subject.isInGroup("sudo")) {
8 return polkit.Result.YES;