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